repos / pgit

static site generator for git
git clone https://github.com/picosh/pgit.git

commit
a9ecf15
parent
2ec28b6
author
Eric Bower
date
2023-08-14 15:16:25 +0000 UTC
fix: invert diffs
1 files changed,  +2, -2
M main.go
+2, -2
 1@@ -448,11 +448,11 @@ func (c *Config) writeLogDiffs(repo *git.Repository, pageData *PageData, logs []
 2 		parentID := parent.ID.String()
 3 
 4 		diff, err := repo.Diff(
 5-			parentID,
 6+			commitID,
 7 			0,
 8 			0,
 9 			0,
10-			git.DiffOptions{Base: commitID},
11+			git.DiffOptions{Base: parentID},
12 		)
13 
14 		rnd := &DiffRender{