mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 00:05:01 +00:00
fix: Handle empty commit history in cmd_diff
This commit is contained in:
parent
9d0b3d17bc
commit
8769f31640
3 changed files with 6 additions and 4 deletions
|
@ -227,6 +227,8 @@ class GitRepo:
|
|||
args = []
|
||||
if pretty:
|
||||
args += ["--color"]
|
||||
else:
|
||||
args += ["--color=never"]
|
||||
|
||||
args += [from_commit, to_commit]
|
||||
diffs = self.repo.git.diff(*args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue