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