X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/89aa3c0d0a4c6d9885272602005975b763ea1604..939d32fda70ea66c9db51687beb3cea6da7b0599:/ui-commit.c
diff --git a/ui-commit.c b/ui-commit.c
index c2fafd7..12a96fb 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,
@@ -221,10 +227,10 @@ void cgit_print_commit(char *hex)
html(" ");
htmlf("%d files changed, %d insertions, %d deletions",
files, total_adds, total_rems);
+ html(" ");
cgit_print_diff(ctx.qry.sha1,
sha1_to_hex(commit->parents->item->object.sha1),
NULL);
- html(")");
}
cgit_free_commitinfo(info);
}
|
|---|