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>2025-05-10 14:50:00 +0200
commit1fe0b3a2a1e3a847cd9fd8c38c6e10f4f035e623 (patch)
tree750f03a5f7fe50a3142a68bf11612754d09a0526 /ui-commit.c
parentSendfile, minor fixes in static file support, spawn more processes in test, c... (diff)
downloadcgit-magenta-1fe0b3a2a1e3a847cd9fd8c38c6e10f4f035e623.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(" (");