AgeCommit message (Collapse)AuthorLines
Drop the check for a language breakdown long goneBryce Kwon-4/+0
Add the shared config writers and cgit_rcBryce Kwon-35/+15
The helpers are named by kind. cgitrc_repo and cgitrc_copy write the config file named first, and cgit_url, cgit_query and cgit_rc run cgit, each named after what it is handed first. A repository copies its defaults from the globals read before its repo.url, so cgitrc_repo places every setting itself, and a global can no longer land where it silently stops applying. The t00xx and t01xx files move to them here.
Refuse pathspec magic on the stats pageBryce Kwon-0/+9
Open the stats window at midnight on its first dayBryce Kwon-0/+28
Test the features the suite never reachedBryce Kwon-0/+11
Index sorting, the commit graph, the stats periods past a week, the hex dump of a binary file and a Lua filter's html_url_arg and html_include ran in no test.
Fold enable-stats back into max-statsBryce Kwon-7/+6
A max-stats period enables the page again, as it did before v2.2.0, so one key does both jobs.
Remove the language breakdown from the stats pageBryce Kwon-14/+9
Null-terminate the stats pathspec argvBryce Kwon-0/+6
Renumber the test scripts into themed rangesBryce Kwon-0/+0
The numbering walks outward from the ground the suite stands on. - t000x for the git version, html validity and the cache - t01xx for page content, one script per page - t02xx for filters, submodule links, dates and limits, which cut across pages - t03xx for defence, the security regressions and the $HOME promise - t04xx for the helper tools under tools/
Tidy the test comments and shell portabilityBryce Kwon-5/+12
Gate the stats page and add a language breakdownBryce Kwon-0/+81
The max-stats setting now only bounds the selectable periods 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.