author | Lars Hjemli <hjemli@gmail.com> | 2007-10-27 08:25:40 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-10-27 08:53:27 (UTC) |
commit | 8efb05f98ad389d1b7f5aac17838401908622dad (patch) (side-by-side diff) | |
tree | 100c407d28215fab0e5d2936c939ff39ec5290fc | |
parent | 6bce91be1a60b46270c69c4098a8c03f47dae63a (diff) | |
download | cgit-8efb05f98ad389d1b7f5aac17838401908622dad.zip cgit-8efb05f98ad389d1b7f5aac17838401908622dad.tar.gz cgit-8efb05f98ad389d1b7f5aac17838401908622dad.tar.bz2 |
Make cgit_print_branches()/cgit_print_tags() external
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.h | 2 | ||||
-rw-r--r-- | ui-summary.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -246,16 +246,18 @@ extern void cgit_print_error(char *msg); extern void cgit_print_date(time_t secs, char *format); extern void cgit_print_age(time_t t, time_t max_relative, char *format); extern void cgit_print_docstart(char *title, struct cacheitem *item); extern void cgit_print_docend(); extern void cgit_print_pageheader(char *title, int show_search); extern void cgit_print_snapshot_start(const char *mimetype, const char *filename, struct cacheitem *item); +extern void cgit_print_branches(int maxcount); +extern void cgit_print_tags(int maxcount); extern void cgit_print_repolist(struct cacheitem *item); extern void cgit_print_summary(); extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path, int pager); extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path); extern void cgit_print_tree(const char *rev, char *path); extern void cgit_print_commit(char *hex); extern void cgit_print_tag(char *revname); diff --git a/ui-summary.c b/ui-summary.c index df79d01..97f1b57 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -161,17 +161,17 @@ static int cgit_print_archive_cb(const char *refname, const unsigned char *sha1, buf)); html_link_open(url, NULL, NULL); html_txt(buf); html_link_close(); html("</td></tr>"); return 0; } -static void cgit_print_branches(int maxcount) +void cgit_print_branches(int maxcount) { struct reflist list; int i; html("<tr class='nohover'><th class='left'>Branch</th>" "<th class='left'>Idle</th>" "<th class='left'>Author</th>" "<th class='left'>Head commit</th></tr>\n"); @@ -187,17 +187,17 @@ static void cgit_print_branches(int maxcount) qsort(list.refs, list.count, sizeof(*list.refs), cmp_branch_age); qsort(list.refs, maxcount, sizeof(*list.refs), cmp_ref_name); } for(i=0; i<maxcount; i++) cgit_print_branch(list.refs[i]); } -static void cgit_print_tags(int maxcount) +void cgit_print_tags(int maxcount) { struct reflist list; int i; header = 0; list.refs = NULL; list.alloc = list.count = 0; for_each_tag_ref(cgit_refs_cb, &list); |