aboutsummaryrefslogtreecommitdiff
path: root/ui-stats.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'ui-stats.c')
-rw-r--r--ui-stats.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/ui-stats.c b/ui-stats.c
index 480c8ee..9cf1dbd 100644
--- a/ui-stats.c
+++ b/ui-stats.c
@@ -211,8 +211,8 @@ static int cmp_total_commits(const void *a1, const void *a2)
/* Walk the commit DAG and collect number of commits per author per
* timeperiod into a nested string_list collection.
*/
-static struct string_list collect_stats(struct cgit_context *ctx,
- struct cgit_period *period)
+struct string_list collect_stats(struct cgit_context *ctx,
+ struct cgit_period *period)
{
struct string_list authors;
struct rev_info rev;
@@ -253,12 +253,9 @@ static struct string_list collect_stats(struct cgit_context *ctx,
return authors;
}
-static void print_combined_authorrow(struct string_list *authors, int from,
- int to, const char *name,
- const char *leftclass,
- const char *centerclass,
- const char *rightclass,
- struct cgit_period *period)
+void print_combined_authorrow(struct string_list *authors, int from, int to,
+ const char *name, const char *leftclass, const char *centerclass,
+ const char *rightclass, struct cgit_period *period)
{
struct string_list_item *author;
struct authorstat *authorstat;
@@ -296,8 +293,8 @@ static void print_combined_authorrow(struct string_list *authors, int from,
htmlf("<td class='%s'>%ld</td></tr>", rightclass, total);
}
-static void print_authors(struct string_list *authors, int top,
- struct cgit_period *period)
+void print_authors(struct string_list *authors, int top,
+ struct cgit_period *period)
{
struct string_list_item *author;
struct authorstat *authorstat;