AgeCommit message (Collapse)AuthorLines
Replace a read-only age file without askingBryce Kwon-1/+1
mv asks before replacing a file it cannot write when stdin is a terminal, and the age hook sends the question to /dev/null. git always gives a hook a pipe, but a hook run by hand from a terminal waited on an answer no one could see and then kept the old date.
Say what the age hook does with a read-only fileBryce Kwon-3/+4
The header said a file the pusher cannot write stays as it was, but the hook replaces it through mv, which needs only the directory, and with stdin not a terminal mv does so without asking. That is the useful behaviour, so the header now says so, and a test holds the hook to it. Only a directory the pusher cannot write keeps the old file, which was the one case tested.
Spell non-zero the way the tree doesBryce Kwon-1/+1
Point each hook at the other hooks hereBryce Kwon-2/+5
The cache hook named only the age-file hook, from before the commit-graph hook came.
Keep the age hook quiet when it cannot writeBryce Kwon-5/+7
Keep the age hook's directory group writableBryce Kwon-2/+11
The hook forced a 022 umask, so in a repository shared with a group the first pusher owned info/web and every other member's push failed to write the age file there.
Unify the docs, samples and extensionsBryce Kwon-15/+10
Clean up the whole treeBryce Kwon-2/+1
Rename the inconsistent config keysBryce Kwon-2/+2
The old spellings are no longer read. enable-header and enable-plain-email take the opposite value of the noheader and noplainemail they replace.
Rename the agefile hook to cgit-ageBryce Kwon-0/+0
Rewrite the agefile hook for reliabilityBryce Kwon-6/+25
Reorganise the tree into vendor/ and custom/Bryce Kwon-0/+0
Reorganise into source, assets and librariesBryce Kwon-0/+0
Everything the build generates now lands in build/, so a clean is a single remove and the source tree stays free of build output.
contrib/hooks: add sample post-receive hook using agefileJohn Keeping-0/+19
One of the most frequent questions on the mailing list relates to the idle time in the repository list. The answer to this is to use the "agefile" feature to calculate the time of the last change whenever the repository receives changes. Add a sample post-receive hook in a new "contrib" directory so that we can just point people at the repository in the future. Signed-off-by: John Keeping <john@keeping.me.uk>