mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
feat: display modified and unmodified files when aborting undo
This commit is contained in:
parent
7ebeb33a4d
commit
8e3d7e55d4
1 changed files with 6 additions and 0 deletions
|
@ -486,6 +486,12 @@ class Commands:
|
|||
modified.add(file_path)
|
||||
except ANY_GIT_ERROR:
|
||||
self.io.tool_error(f"Error restoring {file_path}, aborting undo.")
|
||||
self.io.tool_error("Modified files:")
|
||||
for file in modified:
|
||||
self.io.tool_error(f" {file}")
|
||||
self.io.tool_error("Unmodified files:")
|
||||
for file in set(changed_files_last_commit) - modified:
|
||||
self.io.tool_error(f" {file}")
|
||||
return
|
||||
|
||||
# Move the HEAD back before the latest commit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue