mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 02:34:59 +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]}...")
|
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(
|
diff = self.coder.repo.diff_commits(
|
||||||
self.coder.pretty,
|
self.coder.pretty,
|
||||||
commit_before_message,
|
commit_before_message,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue