-rw-r--r-- | ui-log.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -27,3 +27,3 @@ void inspect_files(struct diff_filepair *pair) files++; - if (cgit_repo->enable_log_linecount) + if (ctx.repo->enable_log_linecount) cgit_diff_files(pair->one->sha1, pair->two->sha1, count_lines); @@ -41,3 +41,3 @@ void print_commit(struct commit *commit) sha1_to_hex(commit->object.sha1)); - if (cgit_repo->enable_log_filecount) { + if (ctx.repo->enable_log_filecount) { files = 0; @@ -48,3 +48,3 @@ void print_commit(struct commit *commit) htmlf("%d", files); - if (cgit_repo->enable_log_linecount) { + if (ctx.repo->enable_log_linecount) { html("</td><td class='right'>"); @@ -96,5 +96,5 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern - if (cgit_repo->enable_log_filecount) { + if (ctx.repo->enable_log_filecount) { html("<th class='right'>Files</th>"); - if (cgit_repo->enable_log_linecount) + if (ctx.repo->enable_log_linecount) html("<th class='right'>Lines</th>"); |