]> granicus.if.org Git - cgit/commitdiff
ui-commit: show subject in commit page title
authorJune McEnroe <june@causal.agency>
Fri, 21 Feb 2020 08:07:50 +0000 (08:07 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 19 Dec 2022 14:24:34 +0000 (15:24 +0100)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
ui-commit.c

index 948118c468d14b4f1f1311685d763cc7be5f3469..5e885444c15a55af7634940abf88856dda2f3527 100644 (file)
@@ -43,6 +43,7 @@ void cgit_print_commit(char *hex, const char *prefix)
 
        load_ref_decorations(NULL, DECORATE_FULL_REFS);
 
+       ctx.page.title = fmtalloc("%s - %s", info->subject, ctx.page.title);
        cgit_print_layout_start();
        cgit_print_diff_ctrls();
        html("<table summary='commit info' class='commit-info'>\n");