X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/a2ddc10479ec463708e422ca5ce7ec02c22a7d02..57f6a8bf0de6c112cabc1d8e20ade2698bd886b7:/ui-log.c diff --git a/ui-log.c b/ui-log.c index 9d0ec02..c80fd73 100644 --- a/ui-log.c +++ b/ui-log.c @@ -19,33 +19,34 @@ void count_lines(char *line, int size) void inspect_files(struct diff_filepair *pair) { files++; - cgit_diff_files(pair->one->sha1, pair->two->sha1, count_lines); + if (cgit_repo->enable_log_linecount) + cgit_diff_files(pair->one->sha1, pair->two->sha1, count_lines); } void print_commit(struct commit *commit) { - char buf[32]; struct commitinfo *info; - struct tm *time; info = cgit_parse_commit(commit); - time = gmtime(&commit->date); html("
| Date | " - "Message | " - "Files | " - "Lines | " - "Author |
|---|---|---|---|---|
| Age | " + "Message | "); + + if (cgit_repo->enable_log_filecount) { + html("Files | "); + if (cgit_repo->enable_log_linecount) + html("Lines | "); + } + html("Author |