diff options
Diffstat (limited to 'commit.go')
| -rw-r--r-- | commit.go | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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()), }) } |
