]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
ui-commit: show subject in commit page title
[ps-cgit] / 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");