about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-21 08:07:50 +0000
committerJune McEnroe <june@causal.agency>2022-02-13 11:52:17 -0500
commit8f9034884bb592a0514d85771bd0096b1584b552 (patch)
tree93b88dde2cb54ce3f4d2a6615a3b3b4ce75f0576
parentShow symlink targets in tree listing (diff)
downloadcgit-pink-8f9034884bb592a0514d85771bd0096b1584b552.tar.gz
cgit-pink-8f9034884bb592a0514d85771bd0096b1584b552.zip
Show subject in commit page title
Diffstat (limited to '')
-rw-r--r--ui-commit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui-commit.c b/ui-commit.c
index 783211f..7e6b5a0 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");