about summary refs log tree commit diff
path: root/ui-commit.c
diff options
context:
space:
mode:
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(" (");