diff options
| author | Jason A. Donenfeld | 2013-03-20 20:21:25 +0100 |
|---|---|---|
| committer | Jason A. Donenfeld | 2013-03-20 20:21:25 +0100 |
| commit | 0255821e22678d4c58c809efe17bf2798835d5b9 (patch) | |
| tree | d4679ff23796406648cf83ff0b98940ba844c5e1 /ui-stats.c | |
| parent | 6d8a789d61f3a682bc040f1f7f44050b1f723546 (diff) | |
| parent | 59fe348deaa270434f05afc56ca8d13618af9ca9 (diff) | |
| download | cgit-0255821e22678d4c58c809efe17bf2798835d5b9.tar.gz cgit-0255821e22678d4c58c809efe17bf2798835d5b9.tar.bz2 cgit-0255821e22678d4c58c809efe17bf2798835d5b9.zip | |
Merge branch 'wip'
Diffstat (limited to 'ui-stats.c')
| -rw-r--r-- | ui-stats.c | 17 |
1 files changed, 10 insertions, 7 deletions
| @@ -211,8 +211,8 @@ static int cmp_total_commits(const void *a1, const void *a2) | |||
| 211 | /* Walk the commit DAG and collect number of commits per author per | 211 | /* Walk the commit DAG and collect number of commits per author per |
| 212 | * timeperiod into a nested string_list collection. | 212 | * timeperiod into a nested string_list collection. |
| 213 | */ | 213 | */ |
| 214 | struct string_list collect_stats(struct cgit_context *ctx, | 214 | static struct string_list collect_stats(struct cgit_context *ctx, |
| 215 | struct cgit_period *period) | 215 | struct cgit_period *period) |
| 216 | { | 216 | { |
| 217 | struct string_list authors; | 217 | struct string_list authors; |
| 218 | struct rev_info rev; | 218 | struct rev_info rev; |
| @@ -253,9 +253,12 @@ struct string_list collect_stats(struct cgit_context *ctx, | |||
| 253 | return authors; | 253 | return authors; |
| 254 | } | 254 | } |
| 255 | 255 | ||
| 256 | void print_combined_authorrow(struct string_list *authors, int from, int to, | 256 | static void print_combined_authorrow(struct string_list *authors, int from, |
| 257 | const char *name, const char *leftclass, const char *centerclass, | 257 | int to, const char *name, |
| 258 | const char *rightclass, struct cgit_period *period) | 258 | const char *leftclass, |
| 259 | const char *centerclass, | ||
| 260 | const char *rightclass, | ||
| 261 | struct cgit_period *period) | ||
| 259 | { | 262 | { |
| 260 | struct string_list_item *author; | 263 | struct string_list_item *author; |
| 261 | struct authorstat *authorstat; | 264 | struct authorstat *authorstat; |
| @@ -293,8 +296,8 @@ void print_combined_authorrow(struct string_list *authors, int from, int to, | |||
| 293 | htmlf("<td class='%s'>%ld</td></tr>", rightclass, total); | 296 | htmlf("<td class='%s'>%ld</td></tr>", rightclass, total); |
| 294 | } | 297 | } |
| 295 | 298 | ||
| 296 | void print_authors(struct string_list *authors, int top, | 299 | static void print_authors(struct string_list *authors, int top, |
| 297 | struct cgit_period *period) | 300 | struct cgit_period *period) |
| 298 | { | 301 | { |
| 299 | struct string_list_item *author; | 302 | struct string_list_item *author; |
| 300 | struct authorstat *authorstat; | 303 | struct authorstat *authorstat; |
