aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-21 09:07:50 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2022-12-19 15:24:34 +0100
commitfd20a5475e33d5b7198cc22b6a5a6940c4a1ac90 (patch)
tree9893f5f07a80a9dd8c8562f6253da5446205270c
parentbcffc523669e00abd949778d4defce37532a3855 (diff)
downloadcgit-fd20a5475e33d5b7198cc22b6a5a6940c4a1ac90.tar.gz
cgit-fd20a5475e33d5b7198cc22b6a5a6940c4a1ac90.tar.xz
ui-commit: show subject in commit page title
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--ui-commit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui-commit.c b/ui-commit.c
index 948118c..5e88544 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -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");