diff options
author | C. McEnroe <june@causal.agency> | 2020-02-21T08·07+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-02-21T21·03+0000 |
commit | cd8a9f7b27ec43ce7a809e86a2d26236ccf1bb41 (patch) | |
tree | fd869264f84f327080b10788f36ab75bb5e9b113 /third_party | |
parent | b503c2afcf166ea002a15fa84f42a998caafa152 (diff) |
feat(cgit/ui-commit): show subject in page title
Diffstat (limited to '')
-rw-r--r-- | third_party/cgit/ui-commit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/third_party/cgit/ui-commit.c b/third_party/cgit/ui-commit.c index b98c77f6a8ce..f7942e10fa01 100644 --- a/third_party/cgit/ui-commit.c +++ b/third_party/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"); |