MCPcopy
hub / github.com/Aider-AI/aider / dirty_commit

Method dirty_commit

aider/coders/base_coder.py:2411–2423  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 []

Callers 1

prepare_to_editMethod · 0.95

Calls 1

commitMethod · 0.80

Tested by

no test coverage detected