about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorC. McEnroe <june@causal.agency>2020-02-21T08·07+0000
committerVincent Ambo <tazjin@google.com>2020-02-21T21·03+0000
commitcd8a9f7b27ec43ce7a809e86a2d26236ccf1bb41 (patch)
treefd869264f84f327080b10788f36ab75bb5e9b113 /third_party
parentb503c2afcf166ea002a15fa84f42a998caafa152 (diff)
feat(cgit/ui-commit): show subject in page title
Diffstat (limited to 'third_party')
-rw-r--r--third_party/cgit/ui-commit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/third_party/cgit/ui-commit.c b/third_party/cgit/ui-commit.c
index b98c77f6a8..f7942e10fa 100644
--- a/third_party/cgit/ui-commit.c
+++ b/third_party/cgit/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");