X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/1de3048d08fc6491630c45437f88f5ab03c0508f..a5e4ad2d8b9c6bcfc7029894d3a3837166996b35:/ui-commit.c?ds=sidebyside diff --git a/ui-commit.c b/ui-commit.c index 536a8e8..5a552a1 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -36,10 +36,11 @@ void cgit_print_commit(char *hex, const char *prefix) } info = cgit_parse_commit(commit); - format_note(NULL, sha1, ¬es, PAGE_ENCODING, 0); + init_display_notes(NULL); + format_display_notes(sha1, ¬es, PAGE_ENCODING, 0); load_ref_decorations(DECORATE_FULL_REFS); - + cgit_print_diff_ctrls(); html("\n"); html("\n"); - for (p = commit->parents; p ; p = p->next) { + for (p = commit->parents; p; p = p->next) { parent = lookup_commit_reference(p->item->object.sha1); if (!parent) { html("
author"); @@ -74,8 +75,9 @@ void cgit_print_commit(char *hex, const char *prefix) html(" /"); cgit_tree_link(prefix, NULL, NULL, ctx.qry.head, tmp, prefix); } + free(tmp); html("
");