From 45b0f878dfe5b07f8787fd1648c3a7758f2da0de Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Sun, 30 Nov 2025 17:50:21 +0100 Subject: Show info in a file renamed without changes --- commit.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'commit.go') 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()), }) } -- cgit v1.2.3