From aff31c1f962799b1c11de5403fd87b7e407bf419 Mon Sep 17 00:00:00 2001 From: kj_sh604 Date: Mon, 4 May 2026 23:44:14 -0400 Subject: refactor: just add the post-receive example here --- post-receive | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 post-receive diff --git a/post-receive b/post-receive new file mode 100644 index 0000000..3a3e262 --- /dev/null +++ b/post-receive @@ -0,0 +1,9 @@ +#!/bin/sh + +agefile="$(git rev-parse --git-dir)"/info/web/last-modified + +mkdir -p "$(dirname "$agefile")" && +git for-each-ref \ + --sort=-authordate --count=1 \ + --format='%(authordate:iso8601)' \ + >"$agefile" -- cgit v1.2.3