X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/89aa3c0d0a4c6d9885272602005975b763ea1604..2ee1238cdff66dcd4bf98f83b820678976f53ed8:/ui-commit.c
diff --git a/ui-commit.c b/ui-commit.c
index c2fafd7..dd36cc0 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -175,6 +175,12 @@ void cgit_print_commit(char *hex)
html("
");
cgit_print_date(info->committer_date, FMT_LONGDATE);
html(" | \n");
+ html("| commit | ");
+ tmp = sha1_to_hex(commit->object.sha1);
+ cgit_commit_link(tmp, NULL, NULL, ctx.qry.head, tmp);
+ html(" (");
+ cgit_patch_link("patch", NULL, NULL, NULL, tmp);
+ html(") |
\n");
html("| tree | ");
tmp = xstrdup(hex);
cgit_tree_link(sha1_to_hex(commit->tree->object.sha1), NULL, NULL,
|
|---|