summaryrefslogtreecommitdiff
path: root/.config/git/hooks/post-receive.d/agefile
blob: 10fc253a33df97432257f2345b993719babb9c9d (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
set -x
agefile="$(git rev-parse --git-dir)"/info/web/last-modified

mkdir -p "$(dirname "$agefile")" &&
git for-each-ref \
	--sort=-committerdate --count=1 \
	--format='%(committerdate:iso8601)' \
	> "$agefile"