about summary refs log tree commit diff
path: root/ui-commit.c
diff options
context:
space:
mode:
authorKatalin Rebhan <me@dblsaiko.net>2025-05-09 18:39:36 +0200
committerRory& <root@rory.gay>2026-02-06 14:14:41 +0100
commitad5445ba9ff8e1ba03bf68cc107e8ff45c1bbafd (patch)
treed18cd4e86f888e0d2767764bd7b69cba4ab5c2d9 /ui-commit.c
parentSendfile, minor fixes in static file support, spawn more processes in test, c... (diff)
downloadcgit-magenta-ad5445ba9ff8e1ba03bf68cc107e8ff45c1bbafd.tar.xz
Show change-id header content if present
Diffstat (limited to 'ui-commit.c')
-rw-r--r--ui-commit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui-commit.c b/ui-commit.c

index 5536ffc..12de4c7 100644 --- a/ui-commit.c +++ b/ui-commit.c
@@ -73,7 +73,15 @@ void cgit_print_commit(char *hex, const char *prefix) html_txt(show_date(info->committer_date, info->committer_tz, cgit_date_mode(DATE_ISO8601))); html("</td></tr>\n"); + + if (info->change_id) { + html("<tr><th>change</th><td colspan='2' class='sha1'>"); + html_txt(info->change_id); + html("</td></tr>\n"); + } + html("<tr><th>commit</th><td colspan='2' class='oid'>"); + tmp = oid_to_hex(&commit->object.oid); cgit_commit_link(tmp, NULL, NULL, ctx.qry.head, tmp, prefix); html(" (");