|
diff --git a/ui-log.c b/ui-log.c index 24d571d..159393a 100644 --- a/ ui-log.c+++ b/ ui-log.c |
|
@@ -45,25 +45,24 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep) |
45 | init_revisions(&rev, NULL); |
45 | init_revisions(&rev, NULL); |
46 | rev.abbrev = DEFAULT_ABBREV; |
46 | rev.abbrev = DEFAULT_ABBREV; |
47 | rev.commit_format = CMIT_FMT_DEFAULT; |
47 | rev.commit_format = CMIT_FMT_DEFAULT; |
48 | rev.verbose_header = 1; |
48 | rev.verbose_header = 1; |
49 | rev.show_root_diff = 0; |
49 | rev.show_root_diff = 0; |
50 | setup_revisions(argc, argv, &rev, NULL); |
50 | setup_revisions(argc, argv, &rev, NULL); |
51 | if (rev.grep_filter) { |
51 | if (rev.grep_filter) { |
52 | rev.grep_filter->regflags |= REG_ICASE; |
52 | rev.grep_filter->regflags |= REG_ICASE; |
53 | compile_grep_patterns(rev.grep_filter); |
53 | compile_grep_patterns(rev.grep_filter); |
54 | } |
54 | } |
55 | prepare_revision_walk(&rev); |
55 | prepare_revision_walk(&rev); |
56 | |
56 | |
57 | html("<h2>Log</h2>"); |
| |
58 | html("<table class='list nowrap'>"); |
57 | html("<table class='list nowrap'>"); |
59 | html("<tr class='nohover'><th class='left'>Date</th>" |
58 | html("<tr class='nohover'><th class='left'>Date</th>" |
60 | "<th class='left'>Message</th>" |
59 | "<th class='left'>Message</th>" |
61 | "<th class='left'>Author</th></tr>\n"); |
60 | "<th class='left'>Author</th></tr>\n"); |
62 | |
61 | |
63 | if (ofs<0) |
62 | if (ofs<0) |
64 | ofs = 0; |
63 | ofs = 0; |
65 | |
64 | |
66 | for (i = 0; i < ofs && (commit = get_revision(&rev)) != NULL; i++) { |
65 | for (i = 0; i < ofs && (commit = get_revision(&rev)) != NULL; i++) { |
67 | free(commit->buffer); |
66 | free(commit->buffer); |
68 | commit->buffer = NULL; |
67 | commit->buffer = NULL; |
69 | free_commit_list(commit->parents); |
68 | free_commit_list(commit->parents); |
|