diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Gate the stats page and add a language breakdown
`max-stats` only bounds the selectable periods now and no longer doubles as the enable switch. The tree walk runs before the history walk on purpose. Releasing commit memory while walking history resets each commit slab index, and a commit graph lookup afterwards would read another commit slot and walk the wrong tree. The stats fixture writes a commit graph so the tests cover that path. The history walk bounds the window in process rather than passing a formatted since date to `setup_revisions`, and parses each commit once.
Diffstat (limited to 'examples')
-rw-r--r--examples/cgitrc5
1 file changed, 5 insertions, 0 deletions
diff --git a/examples/cgitrc b/examples/cgitrc
index 0e82bd2..5626b58 100644
--- a/examples/cgitrc
+++ b/examples/cgitrc
@@ -245,6 +245,11 @@ enable-markdown=1
# Values are week, month, quarter or year. Default is unset.
#max-stats=week
+# Enable the statistics page, with the repository overview, activity
+# timeline, commit rhythm, language breakdown and commits per author.
+# Values are 0 or 1. Default is 0.
+enable-stats=0
+
##
## Snapshots and cloning