diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-17 22:35:48 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-17 22:35:48 +0530 |
commit | 3e6a720154b70a9882af14399548e494b1d0089f (patch) | |
tree | 6926af0c380ce3eb303af05d664a78962083d546 /git/diff.go | |
parent | 5091695e75b2db30b8926d8aa17164c84031bc77 (diff) | |
download | legit-3e6a720154b70a9882af14399548e494b1d0089f.tar.gz legit-3e6a720154b70a9882af14399548e494b1d0089f.tar.bz2 legit-3e6a720154b70a9882af14399548e494b1d0089f.zip |
git, templates: diff view
Diffstat (limited to 'git/diff.go')
-rw-r--r-- | git/diff.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |