AgeCommit message (Collapse)AuthorLines
Keep a detached head in the branch switcherBryce Kwon-0/+41
Add a meta description to the page headBryce Kwon-0/+12
Use standard HTTP reason phrasesBryce Kwon-1/+1
Spell the charset UTF-8 everywhereBryce Kwon-1/+1
Drop the wall clock from the page footerBryce Kwon-3/+2
Replace non-ASCII output glyphs with ASCIIBryce Kwon-3/+2
Resolve submodule links from `.gitmodules`Bryce Kwon-6/+244
Fix the submodule rows in the tree listingBryce Kwon-13/+17
A submodule row linked to a path with its trailing slash stripped, was labelled by its path rather than its entry name, shared the name's element with its hash, claimed a size of zero and offered a blame button that cannot work on a gitlink.
Keep error pages out of the cacheBryce Kwon-0/+6
Show a pinned commit in the switcher, title, crumbsBryce Kwon-18/+110
Always send the Status headerBryce Kwon-0/+4
Print the raw-content headers with the restBryce Kwon-0/+7
Drop the Last-Modified, Expires and ETag headersBryce Kwon-19/+0
Tidy the structure of the generated markupBryce Kwon-9/+9
Wrap the dates in time elementsBryce Kwon-3/+12
Drop the XHTML slashes and boolean spellingsBryce Kwon-6/+6
Modernize the document headBryce Kwon-14/+19
Fix ampersand handling in generated urlsBryce Kwon-1/+3
Remove the repository homepage featureBryce Kwon-5/+0
Restyle the sources and fix the audit's findingsBryce Kwon-728/+763
Gather page output into one bufferBryce Kwon-0/+4
Expand `module-link` placeholders outside printfBryce Kwon-2/+40
Settle the names, types and layout of the sourcesBryce Kwon-33/+35
Give empty repositories their own pageBryce Kwon-2/+12
Add `enable-relative-dates` and `date-format`Bryce Kwon-6/+25
Drop the help tab and its built-in guideBryce Kwon-6/+0
Cap the header branch switcherBryce Kwon-2/+9
Backfill an absent commit messageBryce Kwon-1/+1
Emit a conforming `rel=icon` for the favicon linkBryce Kwon-1/+1
Gate the stats page and add a language breakdownBryce Kwon-1/+1
`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-7/+1
Add a help page with common workflowsBryce Kwon-0/+6
Submit option forms without inline handlersBryce Kwon-1/+1
Point the fork's links and credits at itselfBryce Kwon-2/+2
AUTHORS now records the upstream developers as the project's history rather than as maintainers of the fork.
URL-encode the repolist pager linksBryce Kwon-2/+2
The pager html-escaped its search and sort values instead of url-encoding them, so a term with a hash or ampersand broke the link and dropped the active filter on the next page.
Keep an overlong path out of the tab titleBryce Kwon-4/+15
`fmt()` aborts the request rather than truncate, so a very long path fed into a context-sensitive tab title took down page rendering.
Cast signed chars before ctype callsBryce Kwon-1/+1
A plain char is undefined in the ctype functions for negative values, which a high byte produces wherever char is signed.
Add a light and dark theme toggleBryce Kwon-0/+3
The button is emitted hidden and only revealed by the script, so a browser without JavaScript never shows a control that cannot work and the page keeps tracking the system theme.
Overhaul the stylesheet with tokens and dark modeBryce Kwon-1/+1
The old sheet had no overflow rules, so wide code, diff, blame and stats blocks scrolled the whole page sideways on a phone. The classic layout, badge colours and age shading are kept.
Add viewport and color-scheme meta tagsBryce Kwon-0/+5
Without a viewport meta, mobile browsers assume a desktop-width page and scale it down, which is the root cause of content overflowing on small screens.
Rebuild the page chrome as semantic HTMLBryce Kwon-59/+91
The masthead, tab bar, breadcrumb, content region and footer were HTML tables, which cannot reflow and forced the page to scroll sideways on small screens. Class and id names are kept so custom themes keep matching, the tabs gain title hints and the form controls accessible names.
Replace the glibc-only `memrchr` for portabilityBryce Kwon-1/+12
Reorganize into source, assets and librariesBryce Kwon-0/+0
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.
cgit: override die routine globallyJason A. Donenfeld-2/+7
We don't get any return value from compile_grep_patterns calling compile_regexp_failed, causing the default die routine to print to stderr and then for cgit to exit ungracefully. Instead override the default die routine to show a normal error page. Perhaps compile_grep_patterns ought to change upstream to return an error. But this commit here will handle future issues as well, so perhaps not a bad idea to do anyway. Link: https://lists.zx2c4.com/pipermail/cgit/2026-March/004982.html Link: https://lists.zx2c4.com/pipermail/cgit/2026-March/004983.html Reported-by: Adrian C. <anrxc@sysphere.org> Reported-by: Aiden Woodruff <aiden@aidenw.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
ui-log: allow link following to be disabled per-repoJason A. Donenfeld-1/+1
This exists for other CPU heavy operations like blame, but doesn't for the follow functionality. Add it for that. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
ui-shared: don't write <link> if favicon unsetChristian Barcenas-1/+1
Since the favicon setting defaults to "/favicon.ico", the user can only unset it with favicon=. However, that would write an empty string as the config value. Previously, such empty string always satisfied the if condition. In this case it is better to omit the <link> entirely. Signed-off-by: Christian Barcenas <christian@cbarcenas.com> Signed-off-by: Christian Hesse <mail@eworm.de>
git: update to v2.53.0Christian Hesse-3/+2
Update to git version v2.53.0, this requires changes for these upstream commits: * bdbebe5714b25dc9d215b48efbb80f410925d7dd refs: introduce wrapper struct for `each_ref_fn` * 589127caa73090040200989ff4d24c3d54f473f2 packfile: move list of packs into the packfile store * 5a5c7359f77ecd1bc4b0e172563161d602f131d3 refs: drop `current_ref_iter` hack * b6e4cc8c32850315323961659e553d1d14591f7f tag: support arbitrary repositories in parse_tag() * 84f0e60b28de69d1ccb7a51b729af6202b6cf4c8 packfile: move packfile store into object source Signed-off-by: Christian Hesse <mail@eworm.de>
git: update to v2.47.0Christian Hesse-2/+2
Update to git version v2.47.0, this requires changes for these upstream commits: * e8207717f1623325fe1c95338fb03c1104ed5687 refs: add referent to each_ref_fn Signed-off-by: Christian Hesse <mail@eworm.de>
git: update to v2.46.0Christian Hesse-2/+6
Update to git version v2.46.0, this requires changes for these upstream commits: * e7da9385708accf518a80a1e17969020fb361048 global: introduce `USE_THE_REPOSITORY_VARIABLE` macro * 9da95bda74cf10e1475384a71fd20914c3b99784 hash: require hash algorithm in `oidread()` and `oidclr()` * 30aaff437fddd889ba429b50b96ea4c151c502c5 refs: pass repo when peeling objects * c8f815c2083c4b340d4148a15d45c55f2fcc7d3f refs: remove functions without ref store Signed-off-by: Christian Hesse <mail@eworm.de>
git: update to v2.45.0Christian Hesse-2/+2
Update to git version v2.45.0, this requires changes for these upstream commits: * 9720d23e8caf4adee44b3a32803a9bb0480118bd date: make DATE_MODE thread-safe Signed-off-by: Christian Hesse <mail@eworm.de>