gshr
git static host repo -- generates static html for repos
git clone https://git.vogt.world/gshr.git
Log | Files | README.md | LICENSE
← Commit log
commit
message
Fixing reversed patch-diff on commit page
author
Ben Vogt <[email protected]>
date
2023-04-07 13:46:05
stats
1 file(s) changed, 1 insertions(+), 1 deletions(-)
files
commit.go
 1diff --git a/commit.go b/commit.go
 2index 0cce59e..2eced42 100644
 3--- a/commit.go
 4+++ b/commit.go
 5@@ -53,7 +53,7 @@ func RenderAllCommitPages(data RepoData, r *git.Repository) {
 6 		filesChanged := []string{}
 7 		if parent != nil {
 8 
 9-			patch, err := c.Patch(parent)
10+			patch, err := parent.Patch(c)
11 			checkErr(err)
12 			patchString := patch.String()
13 			highlighted := highlight("x.diff", &patchString)