Refactor get_diffs method to accept variable number of arguments and fix get_diffs calls.

This commit is contained in:
Paul Gauthier 2023-05-15 14:18:57 -07:00
parent d59c821019
commit b0a5c5b03d
2 changed files with 3 additions and 10 deletions

View file

@ -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)