X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/f35db1cd2b75aac6952aa07713e44ca01fd89727..59310ab102a448d90c337b3b138dd53681d8097e:/ui-commit.c diff --git a/ui-commit.c b/ui-commit.c index ee0e139..f5b0ae5 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -35,20 +35,24 @@ void cgit_print_commit(char *hex) } info = cgit_parse_commit(commit); - load_ref_decorations(); + load_ref_decorations(DECORATE_FULL_REFS); html("
| author | "); html_txt(info->author); - html(" "); - html_txt(info->author_email); + if (!ctx.cfg.noplainemail) { + html(" "); + html_txt(info->author_email); + } html(" | "); cgit_print_date(info->author_date, FMT_LONGDATE, ctx.cfg.local_time); html(" |
|---|---|---|
| committer | "); html_txt(info->committer); - html(" "); - html_txt(info->committer_email); + if (!ctx.cfg.noplainemail) { + html(" "); + html_txt(info->committer_email); + } html(" | "); cgit_print_date(info->committer_date, FMT_LONGDATE, ctx.cfg.local_time); html(" |