From 3e6a720154b70a9882af14399548e494b1d0089f Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sat, 17 Dec 2022 22:35:48 +0530 Subject: git, templates: diff view --- git/diff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/diff.go') diff --git a/git/diff.go b/git/diff.go index f7e5b0e..4b42b9a 100644 --- a/git/diff.go +++ b/git/diff.go @@ -69,9 +69,9 @@ func (g *GitRepo) Diff() (*NiceDiff, error) { nd.Commit.Parent = parent.Hash.String() nd.Commit.Author = c.Author nd.Commit.Message = c.Message - ndiff := Diff{} for _, d := range diffs { + ndiff := Diff{} ndiff.Name.New = d.NewName ndiff.Name.Old = d.OldName -- cgit