AgeCommit message (Collapse)AuthorLines
Keep clone files and oversized responses out of the cacheBryce Kwon-0/+1
The dumb transport reads files that already sit on the disk, so a pack copied into a slot cost that disk twice and the request a second write of every byte. A snapshot took a slot whatever its size, so a visitor naming distinct refs and ids could fill the cache root with archives. `cache-max-slot-size`, 64 MB unless set, now serves a larger response from the lock file and drops it, along with any expired copy it would have replaced.
Rename enable-trailers to enable-commit-trailersBryce Kwon-2/+2
Harden the request path, scan and error recoveryBryce Kwon-3/+14
Gate scanned filters with `trust-scan-filters`Bryce Kwon-1/+1
Apply the mailmap at HEAD to every identBryce Kwon-0/+2
Split trailers out of the commit messageBryce Kwon-0/+4
Clean up the whole treeBryce Kwon-2/+1
Trim the comments and dead code across the treeBryce Kwon-2/+1
Rename the inconsistent config keysBryce Kwon-6/+6
noplainemail enable-plain-email noheader enable-header cache-root-ttl cache-index-ttl cache-repo-ttl cache-summary-ttl cache-scanrc-ttl cache-scan-ttl agefile age-file renamelimit rename-limit extra-head-content head-content
Fold `enable-stats` back into `max-stats`Bryce Kwon-2/+0
A `max-stats` period enables the page again, as it did before v2.2.0, so one key does both jobs.
Resolve submodule links from `.gitmodules`Bryce Kwon-0/+2
Print the raw-content headers with the restBryce Kwon-0/+1
Drop the Last-Modified, Expires and ETag headersBryce Kwon-3/+0
Remove the repository homepage featureBryce Kwon-1/+0
Restyle the sources and fix the audit's findingsBryce Kwon-143/+43
Bound the search and cache key a request can askBryce Kwon-0/+8
Settle the names, types and layout of the sourcesBryce Kwon-12/+12
Give empty repositories their own pageBryce Kwon-0/+3
Add `enable-relative-dates` and `date-format`Bryce Kwon-0/+4
Drop the help tab and its built-in guideBryce Kwon-1/+0
Replace the browser markdown renderer with a filterBryce Kwon-1/+0
The readme is now escaped plain text unless `about-filter` points at the new `about-render.lua`, which renders markdown, man pages and plain text server-side. `enable-markdown` goes away with the renderer.
Add `max-patch-count` to bound the patch viewBryce Kwon-0/+1
Gate the stats page and add a language breakdownBryce Kwon-0/+2
`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.
Remove the owner filter hookBryce Kwon-3/+1
Stat oversized diffs instead of inlining themBryce Kwon-0/+2
Cap and paginate the ref listingsBryce Kwon-0/+1
Add a help page with common workflowsBryce Kwon-0/+1
Drop unused config and query fieldsBryce Kwon-3/+0
Render README markdown in the browserBryce Kwon-0/+1
cgit had no markdown support of its own, so a readme was rendered through an external python filter or not at all. Escaping the source and formatting it in cgit.js keeps the work in the browser like the blob highlighter, and the page stays readable as plain text without scripting.
Add `enable-tree-group-dirs` to list dirs firstBryce Kwon-0/+1
Gate the cache listing behind `enable-cache-list`Bryce Kwon-0/+1
The `ls_cache` page printed the cache directory path and the urls other visitors had requested, with no gate at all.
Reorganize into source, assets and librariesBryce Kwon-0/+404
The C sources move to source/, the served files to assets/, the bundled Git submodule to libraries/git and the filter scripts to extensions/. Everything the build generates now lands in build/, so a clean is a single remove and the tree stays clean.