[PATCH v2] ui-commit: show subject in page title

C. McEnroe june at causal.agency
Sun Feb 23 19:52:27 CET 2020


Signed-off-by: C. McEnroe <june at causal.agency>
---

With Signed-off-by.

 ui-commit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ui-commit.c b/ui-commit.c
index 9a47b54..ac3ca01 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");
-- 
2.25.0



More information about the CGit mailing list