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

Method show_undo_hint

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

Source from the content-addressed store, hash-verified

2403 self.commands.cmd_diff()
2404
2405 def show_undo_hint(self):
2406 if not self.commit_before_message:
2407 return
2408 if self.commit_before_message[-1] != self.repo.get_head_commit_sha():
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:

Callers 1

runMethod · 0.95

Calls 2

get_head_commit_shaMethod · 0.80
tool_outputMethod · 0.45

Tested by

no test coverage detected