summary refs log tree commit diff
path: root/www
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-21 08:07:50 +0000
committerJune McEnroe <june@causal.agency>2020-12-27 19:59:50 -0500
commitc924782b4f6f19bea189571c01360cd6a777b808 (patch)
tree0f81ac692bd51dd9de7121e3ee4b0b8f14f56d10 /www
parentShow symlink targets in tree listing (diff)
downloadsrc-c924782b4f6f19bea189571c01360cd6a777b808.tar.gz
src-c924782b4f6f19bea189571c01360cd6a777b808.zip
Show subject in commit page title
Diffstat (limited to '')
-rw-r--r--www/git.causal.agency/cgit/ui-commit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/www/git.causal.agency/cgit/ui-commit.c b/www/git.causal.agency/cgit/ui-commit.c
index 783211ff..7e6b5a06 100644
--- a/www/git.causal.agency/cgit/ui-commit.c
+++ b/www/git.causal.agency/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");