summaryrefslogtreecommitdiff
path: root/pkg/gui/diffview.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/diffview.go')
-rw-r--r--pkg/gui/diffview.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/diffview.go b/pkg/gui/diffview.go
index 55286e9..caf42fc 100644
--- a/pkg/gui/diffview.go
+++ b/pkg/gui/diffview.go
@@ -38,7 +38,7 @@ func (gui *Gui) openCommitDiffView(g *gocui.Gui, v *gocui.View) (err error) {
commit := entity.Commit
commitDetail := []string{("Hash: " + cyan.Sprint(commit.Hash) + "\n" + "Author: " + commit.Author +
"\n" + commit.Time + "\n" + "\n" + "\t\t" + commit.Message + "\n")}
- diff, err := entity.Diff(entity.Commit.Hash)
+ diff, err := git.Diff(entity, entity.Commit.Hash)
if err != nil {
return err
}