summaryrefslogtreecommitdiffstats
path: root/git/diff.go
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-17 22:35:48 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-17 22:35:48 +0530
commit3e6a720154b70a9882af14399548e494b1d0089f (patch)
tree6926af0c380ce3eb303af05d664a78962083d546 /git/diff.go
parent5091695e75b2db30b8926d8aa17164c84031bc77 (diff)
downloadlegit-3e6a720154b70a9882af14399548e494b1d0089f.tar.gz
legit-3e6a720154b70a9882af14399548e494b1d0089f.tar.bz2
legit-3e6a720154b70a9882af14399548e494b1d0089f.zip
git, templates: diff view
Diffstat (limited to '')
-rw-r--r--git/diff.go2
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