| 2409 | self.io.tool_output("You can use /undo to undo and discard each aider commit.") |
| 2410 | |
| 2411 | def dirty_commit(self): |
| 2412 | if not self.need_commit_before_edits: |
| 2413 | return |
| 2414 | if not self.dirty_commits: |
| 2415 | return |
| 2416 | if not self.repo: |
| 2417 | return |
| 2418 | |
| 2419 | self.repo.commit(fnames=self.need_commit_before_edits, coder=self) |
| 2420 | |
| 2421 | # files changed, move cur messages back behind the files messages |
| 2422 | # self.move_back_cur_messages(self.gpt_prompts.files_content_local_edits) |
| 2423 | return True |
| 2424 | |
| 2425 | def get_edits(self, mode="update"): |
| 2426 | return [] |