diff options
author | June McEnroe <june@causal.agency> | 2020-02-21 08:07:50 +0000 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-12-19 15:24:34 +0100 |
commit | fd20a5475e33d5b7198cc22b6a5a6940c4a1ac90 (patch) | |
tree | 9893f5f07a80a9dd8c8562f6253da5446205270c /ui-commit.c | |
parent | bcffc523669e00abd949778d4defce37532a3855 (diff) | |
download | cgit-fd20a5475e33d5b7198cc22b6a5a6940c4a1ac90.tar.gz cgit-fd20a5475e33d5b7198cc22b6a5a6940c4a1ac90.tar.bz2 cgit-fd20a5475e33d5b7198cc22b6a5a6940c4a1ac90.zip |
ui-commit: show subject in commit page title
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui-commit.c')
-rw-r--r-- | ui-commit.c | 1 |
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) 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"); |