mirror of
https://git.zx2c4.com/cgit
synced 2025-08-31 15:09:42 +02:00
ui-stats: replace 'enable-stats' setting with 'max-stats'
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>
This commit is contained in:
parent
c6a6aa2186
commit
fb2f3f6c29
8 changed files with 105 additions and 59 deletions
|
@ -641,7 +641,7 @@ void cgit_print_pageheader(struct cgit_context *ctx)
|
|||
ctx->qry.head, ctx->qry.sha1);
|
||||
cgit_diff_link("diff", NULL, hc(cmd, "diff"), ctx->qry.head,
|
||||
ctx->qry.sha1, ctx->qry.sha2, NULL);
|
||||
if (ctx->repo->enable_stats)
|
||||
if (ctx->repo->max_stats)
|
||||
reporevlink("stats", "stats", NULL, hc(cmd, "stats"),
|
||||
ctx->qry.head, NULL, NULL);
|
||||
if (ctx->repo->readme)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue