summaryrefslogtreecommitdiffstats
path: root/git/diff.go
diff options
context:
space:
mode:
Diffstat (limited to 'git/diff.go')
-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