diff options
| author | Anton Medvedev <anton@medv.io> | 2025-11-30 17:50:21 +0100 |
|---|---|---|
| committer | Anton Medvedev <anton@medv.io> | 2025-11-30 17:50:21 +0100 |
| commit | 45b0f878dfe5b07f8787fd1648c3a7758f2da0de (patch) | |
| tree | df1a2ea870dfc4abb1b5c8475e422bc658ddd544 /commit.go | |
| parent | ed5c5009e85de3947fd7d25e09df117eda86ea42 (diff) | |
Show info in a file renamed without changes
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()), }) } |
