summaryrefslogtreecommitdiff
path: root/ui-stats.h
Commit message (Collapse)AuthorAge
* Add and use cgit_find_stats_periodname() in print_repo()Lars Hjemli2009-08-24
| | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* ui-stats: replace 'enable-stats' setting with 'max-stats'Lars Hjemli2008-12-07
| | | | | | | | | The new 'max-stats' and 'repo.max-stats' settings makes it possible to define the maximum statistics period, both globally and per repo. Hence, it is now feasible to allow statistics on repositories with a high commit frequency, like linux-2.6, by setting repo.max-stats to e.g. 'month'. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Add a 'stats' page to each repoLars Hjemli2008-12-06
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>