summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2007-10-27 10:25:40 +0200
committerLars Hjemli <hjemli@gmail.com>2007-10-27 10:53:27 +0200
commit8efb05f98ad389d1b7f5aac17838401908622dad (patch)
tree100c407d28215fab0e5d2936c939ff39ec5290fc
parent6bce91be1a60b46270c69c4098a8c03f47dae63a (diff)
downloadcgit-8efb05f98ad389d1b7f5aac17838401908622dad.tar.gz
cgit-8efb05f98ad389d1b7f5aac17838401908622dad.tar.bz2
cgit-8efb05f98ad389d1b7f5aac17838401908622dad.zip
Make cgit_print_branches()/cgit_print_tags() external
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r--cgit.h2
-rw-r--r--ui-summary.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/cgit.h b/cgit.h
index bb0e64c..a1fe527 100644
--- a/cgit.h
+++ b/cgit.h
@@ -251,6 +251,8 @@ 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();
diff --git a/ui-summary.c b/ui-summary.c
index df79d01..97f1b57 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -166,7 +166,7 @@ static int cgit_print_archive_cb(const char *refname, const unsigned char *sha1,
return 0;
}
-static void cgit_print_branches(int maxcount)
+void cgit_print_branches(int maxcount)
{
struct reflist list;
int i;
@@ -192,7 +192,7 @@ static void cgit_print_branches(int maxcount)
cgit_print_branch(list.refs[i]);
}
-static void cgit_print_tags(int maxcount)
+void cgit_print_tags(int maxcount)
{
struct reflist list;
int i;
ass='deletions'>-1/+1 2014-04-24tests: test for spacesJason A. Donenfeld3-8/+20 2014-04-24Move test instructions to INSTALL.Jason A. Donenfeld2-11/+18 2014-04-24tests: we don't use aggregate-resultsJason A. Donenfeld1-57/+0 2014-04-24Don't prompt for questions when stdin is not a tty.Jason A. Donenfeld3-7/+6 2014-04-24Allow overridable bash.Jason A. Donenfeld16-16/+16 2014-04-24dmenu: check for empty instead of ret codeJason A. Donenfeld1-1/+1 2014-04-24tests: sed doesn't like escaped chars on non-gnuJason A. Donenfeld1-1/+1 2014-04-24tests: run from anywhereJason A. Donenfeld13-4/+16 2014-04-24Turns out aliases were a bad idea.Jason A. Donenfeld14-95/+92 2014-04-24Make gpg_opts an array.Jason A. Donenfeld1-12/+12 2014-04-24Shellcheck errors.Jason A. Donenfeld1-6/+6 2014-04-24tests: todo updateJason A. Donenfeld1-25/+0