|
diff --git a/ui-log.c b/ui-log.c index c52af79..b7da49f 100644 --- a/ ui-log.c+++ b/ ui-log.c |
|
@@ -19,28 +19,25 @@ void print_commit(struct commit *commit) |
19 | html("<tr><td>"); |
19 | html("<tr><td>"); |
20 | strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", time); |
20 | strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", time); |
21 | html_txt(buf); |
21 | html_txt(buf); |
22 | html("</td><td>"); |
22 | html("</td><td>"); |
23 | char *qry = fmt("id=%s", sha1_to_hex(commit->object.sha1)); |
23 | char *qry = fmt("id=%s", sha1_to_hex(commit->object.sha1)); |
24 | char *url = cgit_pageurl(cgit_query_repo, "commit", qry); |
24 | char *url = cgit_pageurl(cgit_query_repo, "commit", qry); |
25 | html_link_open(url, NULL, NULL); |
25 | html_link_open(url, NULL, NULL); |
26 | html_txt(info->subject); |
26 | html_txt(info->subject); |
27 | html_link_close(); |
27 | html_link_close(); |
28 | html("</td><td>"); |
28 | html("</td><td>"); |
29 | html_txt(info->author); |
29 | html_txt(info->author); |
30 | html("</td></tr>\n"); |
30 | html("</td></tr>\n"); |
31 | free(info->author); |
31 | cgit_free_commitinfo(info); |
32 | free(info->committer); |
| |
33 | free(info->subject); |
| |
34 | free(info); |
| |
35 | } |
32 | } |
36 | |
33 | |
37 | |
34 | |
38 | void cgit_print_log(const char *tip, int ofs, int cnt) |
35 | void cgit_print_log(const char *tip, int ofs, int cnt) |
39 | { |
36 | { |
40 | struct rev_info rev; |
37 | struct rev_info rev; |
41 | struct commit *commit; |
38 | struct commit *commit; |
42 | const char *argv[2] = {NULL, tip}; |
39 | const char *argv[2] = {NULL, tip}; |
43 | int i; |
40 | int i; |
44 | |
41 | |
45 | init_revisions(&rev, NULL); |
42 | init_revisions(&rev, NULL); |
46 | rev.abbrev = DEFAULT_ABBREV; |
43 | rev.abbrev = DEFAULT_ABBREV; |
|