mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-07 13:15:00 +00:00
feat: add error handling to cmd_diff and create cmd_diff_raw
This commit is contained in:
parent
f3cce95419
commit
3a78f217b2
1 changed files with 9 additions and 1 deletions
|
@ -517,8 +517,16 @@ class Commands:
|
|||
if self.coder.main_model.send_undo_reply:
|
||||
return prompts.undo_command_reply
|
||||
|
||||
def cmd_diff(self, args=""):
|
||||
def cmd_diff(self, *args, **kwargs):
|
||||
"Display the diff of changes since the last message"
|
||||
try:
|
||||
# todo
|
||||
pass
|
||||
except ANY_GIT_ERROR as err:
|
||||
self.io.tool_error(f"Unable to complete {cmd_name}: {err}")
|
||||
|
||||
|
||||
def cmd_diff_raw(self, args=""):
|
||||
if not self.coder.repo:
|
||||
self.io.tool_error("No git repository found.")
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue