X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/0b6a716d1b9f18e8cc00940a7962e542b9358238..961893b5478e7676b1a422185fcac41f89434b0a:/ui-log.c?ds=sidebyside diff --git a/ui-log.c b/ui-log.c index b67c2ef..6b12ca2 100644 --- a/ui-log.c +++ b/ui-log.c @@ -102,11 +102,10 @@ void print_commit(struct commit *commit, struct rev_info *revs) struct strbuf graphbuf = STRBUF_INIT; struct strbuf msgbuf = STRBUF_INIT; - if (ctx.repo->enable_log_filecount) { + if (ctx.repo->enable_log_filecount) + cols++; + if (ctx.repo->enable_log_linecount) cols++; - if (ctx.repo->enable_log_linecount) - cols++; - } if (revs->graph) { /* Advance graph until current commit */ @@ -173,18 +172,18 @@ void print_commit(struct commit *commit, struct rev_info *revs) cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE); } - if (ctx.repo->enable_log_filecount) { + if (ctx.repo->enable_log_filecount || ctx.repo->enable_log_linecount) { files = 0; add_lines = 0; rem_lines = 0; cgit_diff_commit(commit, inspect_files, ctx.qry.vpath); - html("