From f46c4521d761a0b9909e17ef29065c0aa09c7ab7 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 8 Jun 2021 14:27:44 -0400 Subject: Squashed 'www/git.causal.agency/cgit/' changes from 55fa25ad..5258c297 5258c297 git: update to v2.32.0 6dbbffe0 git: update to v2.31.1 62eb8db4 md2html: use proper formatting for hr d889cae8 git: update to v2.31.0 4ffadc1e git: update to v2.30.1 bd6f5683 tests: t0107: support older and/or non-GNU tar f69626c6 md2html: use sane_lists extension cef27b67 git: update to v2.30.0 b1739247 git: update to v2.29.2 fe99c76e git: update to v2.29.1 adcc4f82 tests: try with commit-graph a1039ab1 tests: do not copy snapshots to /tmp/ a4de0e81 global: replace hard coded hash length 779631c6 global: replace references to 'sha1' with 'oid' 629659d2 git: update to v2.29.0 205837d4 git: update to v2.28.0 f780396c git: update to v2.27.0 0462f08d git: update to v2.26.0 git-subtree-dir: www/git.causal.agency/cgit git-subtree-split: 5258c297ba6fb604ae1415fbc19a3fe42457e49e --- ui-commit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ui-commit.c') diff --git a/ui-commit.c b/ui-commit.c index 783211ff..948118c4 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -70,13 +70,13 @@ 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("\n"); - html("commit"); + html("commit"); tmp = oid_to_hex(&commit->object.oid); cgit_commit_link(tmp, NULL, NULL, ctx.qry.head, tmp, prefix); html(" ("); cgit_patch_link("patch", NULL, NULL, NULL, tmp, prefix); html(")\n"); - html("tree"); + html("tree"); tmp = xstrdup(hex); cgit_tree_link(oid_to_hex(get_commit_tree_oid(commit)), NULL, NULL, ctx.qry.head, tmp, NULL); @@ -95,7 +95,7 @@ void cgit_print_commit(char *hex, const char *prefix) continue; } html("parent" - ""); + ""); tmp = tmp2 = oid_to_hex(&p->item->object.oid); if (ctx.repo->enable_subject_links) { parent_info = cgit_parse_commit(parent); @@ -109,7 +109,7 @@ void cgit_print_commit(char *hex, const char *prefix) parents++; } if (ctx.repo->snapshots) { - html("download"); + html("download"); cgit_print_snapshot_links(ctx.repo, hex, "
"); html(""); } @@ -139,7 +139,7 @@ void cgit_print_commit(char *hex, const char *prefix) tmp = oid_to_hex(&commit->parents->item->object.oid); else tmp = NULL; - cgit_print_diff(ctx.qry.sha1, tmp, prefix, 0, 0); + cgit_print_diff(ctx.qry.oid, tmp, prefix, 0, 0); } strbuf_release(¬es); cgit_free_commitinfo(info); -- cgit 1.4.1