mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
feat: add direct git diff output for pretty mode
This commit is contained in:
parent
63e86b5673
commit
e1fd506269
1 changed files with 4 additions and 0 deletions
|
@ -588,6 +588,10 @@ class Commands:
|
|||
|
||||
self.io.tool_output(f"Diff since {commit_before_message[:7]}...")
|
||||
|
||||
if self.coder.pretty:
|
||||
run_cmd(f"git diff {commit_before_message} HEAD")
|
||||
return
|
||||
|
||||
diff = self.coder.repo.diff_commits(
|
||||
self.coder.pretty,
|
||||
commit_before_message,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue