mirror of
https://git.zx2c4.com/cgit
synced 2025-07-02 22:34:32 +02:00
Add a 'stats' page to each repo
This new page, which is disabled by default, can be used to print some statistics about the number of commits per period in the repository, where period can be either weeks, months, quarters or years. The function can be activated globally by setting 'enable-stats=1' in cgitrc and disabled for individual repos by setting 'repo.enable-stats=0'. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
140012d7a8
commit
f86a23ff53
10 changed files with 497 additions and 0 deletions
1
shared.c
1
shared.c
|
@ -58,6 +58,7 @@ struct cgit_repo *cgit_add_repo(const char *url)
|
|||
ret->snapshots = ctx.cfg.snapshots;
|
||||
ret->enable_log_filecount = ctx.cfg.enable_log_filecount;
|
||||
ret->enable_log_linecount = ctx.cfg.enable_log_linecount;
|
||||
ret->enable_stats = ctx.cfg.enable_stats;
|
||||
ret->module_link = ctx.cfg.module_link;
|
||||
ret->readme = NULL;
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue