summaryrefslogtreecommitdiff
path: root/commit.go
diff options
context:
space:
mode:
authorAnton Medvedev <anton@medv.io>2025-11-30 17:50:21 +0100
committerAnton Medvedev <anton@medv.io>2025-11-30 17:50:21 +0100
commit45b0f878dfe5b07f8787fd1648c3a7758f2da0de (patch)
treedf1a2ea870dfc4abb1b5c8475e422bc658ddd544 /commit.go
parented5c5009e85de3947fd7d25e09df117eda86ea42 (diff)
Show info in a file renamed without changes
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()),
})
}