summaryrefslogtreecommitdiff
path: root/commit.go
diff options
context:
space:
mode:
Diffstat (limited to 'commit.go')
-rw-r--r--commit.go17
1 files changed, 9 insertions, 8 deletions
diff --git a/commit.go b/commit.go
index 57f4d03..e5621a7 100644
--- a/commit.go
+++ b/commit.go
@@ -202,14 +202,15 @@ func generateCommitPage(commit git.Commit, params Params) error {
}
filesViews = append(filesViews, templates.FileView{
- Path: path,
- OldName: f.OldName,
- NewName: f.NewName,
- IsNew: f.IsNew,
- IsDelete: f.IsDelete,
- IsRename: f.IsRename,
- IsBinary: f.IsBinary,
- HTML: template.HTML(buf.String()),
+ Path: path,
+ OldName: f.OldName,
+ NewName: f.NewName,
+ IsNew: f.IsNew,
+ IsDelete: f.IsDelete,
+ IsRename: f.IsRename,
+ IsBinary: f.IsBinary,
+ HasChanges: f.TextFragments != nil,
+ HTML: template.HTML(buf.String()),
})
}