|
diff --git a/ui-log.c b/ui-log.c index e5f3c57..a41d2b2 100644 --- a/ ui-log.c+++ b/ ui-log.c |
|
@@ -77,33 +77,33 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern |
77 | if (path) { |
77 | if (path) { |
78 | argv[argc++] = "--"; |
78 | argv[argc++] = "--"; |
79 | argv[argc++] = path; |
79 | argv[argc++] = path; |
80 | } |
80 | } |
81 | init_revisions(&rev, NULL); |
81 | init_revisions(&rev, NULL); |
82 | rev.abbrev = DEFAULT_ABBREV; |
82 | rev.abbrev = DEFAULT_ABBREV; |
83 | rev.commit_format = CMIT_FMT_DEFAULT; |
83 | rev.commit_format = CMIT_FMT_DEFAULT; |
84 | rev.verbose_header = 1; |
84 | rev.verbose_header = 1; |
85 | rev.show_root_diff = 0; |
85 | rev.show_root_diff = 0; |
86 | setup_revisions(argc, argv, &rev, NULL); |
86 | setup_revisions(argc, argv, &rev, NULL); |
87 | if (rev.grep_filter) { |
87 | if (rev.grep_filter) { |
88 | rev.grep_filter->regflags |= REG_ICASE; |
88 | rev.grep_filter->regflags |= REG_ICASE; |
89 | compile_grep_patterns(rev.grep_filter); |
89 | compile_grep_patterns(rev.grep_filter); |
90 | } |
90 | } |
91 | prepare_revision_walk(&rev); |
91 | prepare_revision_walk(&rev); |
92 | |
92 | |
93 | html("<table class='list nowrap'>"); |
93 | html("<table summary='log' class='list nowrap'>"); |
94 | html("<tr class='nohover'><th class='left'>Age</th>" |
94 | html("<tr class='nohover'><th class='left'>Age</th>" |
95 | "<th class='left'>Message</th>"); |
95 | "<th class='left'>Message</th>"); |
96 | |
96 | |
97 | if (cgit_repo->enable_log_filecount) { |
97 | if (cgit_repo->enable_log_filecount) { |
98 | html("<th class='right'>Files</th>"); |
98 | html("<th class='right'>Files</th>"); |
99 | if (cgit_repo->enable_log_linecount) |
99 | if (cgit_repo->enable_log_linecount) |
100 | html("<th class='right'>Lines</th>"); |
100 | html("<th class='right'>Lines</th>"); |
101 | } |
101 | } |
102 | html("<th class='left'>Author</th></tr>\n"); |
102 | html("<th class='left'>Author</th></tr>\n"); |
103 | |
103 | |
104 | if (ofs<0) |
104 | if (ofs<0) |
105 | ofs = 0; |
105 | ofs = 0; |
106 | |
106 | |
107 | for (i = 0; i < ofs && (commit = get_revision(&rev)) != NULL; i++) { |
107 | for (i = 0; i < ofs && (commit = get_revision(&rev)) != NULL; i++) { |
108 | free(commit->buffer); |
108 | free(commit->buffer); |
109 | commit->buffer = NULL; |
109 | commit->buffer = NULL; |
|