Commit a9ecf15
Eric Bower
·
2023-08-14 11:16:25 -0400 EDT
parent 2ec28b6
fix: invert diffs
1 files changed,
+2,
-2
M
main.go
M
main.go
+2,
-2
| ... | ... | @@ -448,11 +448,11 @@ func (c *Config) writeLogDiffs(repo *git.Repository, pageData *PageData, logs [] | |
| 448 | 448 | parentID := parent.ID.String() | |
| 449 | 449 | ||
| 450 | 450 | diff, err := repo.Diff( | |
| 451 | - | parentID, | |
| 451 | + | commitID, | |
| 452 | 452 | 0, | |
| 453 | 453 | 0, | |
| 454 | 454 | 0, | |
| 455 | - | git.DiffOptions{Base: commitID}, | |
| 455 | + | git.DiffOptions{Base: parentID}, | |
| 456 | 456 | ) | |
| 457 | 457 | ||
| 458 | 458 | rnd := &DiffRender{ |