mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
Refactor get_diffs method to accept variable number of arguments and fix get_diffs calls.
This commit is contained in:
parent
d59c821019
commit
b0a5c5b03d
2 changed files with 3 additions and 10 deletions
|
@ -131,10 +131,6 @@ class Commands:
|
|||
|
||||
commits = f"{self.coder.last_aider_commit_hash}~1"
|
||||
diff = self.coder.get_diffs(commits, self.coder.last_aider_commit_hash)
|
||||
if self.coder.pretty:
|
||||
diff = self.coder.repo.git.diff(commits, "--color", self.coder.last_aider_commit_hash)
|
||||
else:
|
||||
diff = self.coder.repo.git.diff(commits, self.coder.last_aider_commit_hash)
|
||||
|
||||
# don't use io.tool() because we don't want to log or further colorize
|
||||
print(diff)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue