aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJune McEnroe2020-02-21 08:07:50 +0000
committerYigit Sever2023-07-21 03:03:49 +0300
commit51b86d8dfa874e203394583b8ae0530e7a9f79f1 (patch)
tree4b0453c628f82f12094b95b3db1210c0fb0b5658
parent284020825c91ec2c6704ab25f187b20656cf1300 (diff)
downloadcgit-51b86d8dfa874e203394583b8ae0530e7a9f79f1.tar.gz
cgit-51b86d8dfa874e203394583b8ae0530e7a9f79f1.tar.bz2
cgit-51b86d8dfa874e203394583b8ae0530e7a9f79f1.zip
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)
43 43
44 load_ref_decorations(NULL, DECORATE_FULL_REFS); 44 load_ref_decorations(NULL, DECORATE_FULL_REFS);
45 45
46 ctx.page.title = fmtalloc("%s - %s", info->subject, ctx.page.title);
46 cgit_print_layout_start(); 47 cgit_print_layout_start();
47 cgit_print_diff_ctrls(); 48 cgit_print_diff_ctrls();
48 html("<table summary='commit info' class='commit-info'>\n"); 49 html("<table summary='commit info' class='commit-info'>\n");