From 7ac25bc55405b51dd89f38ffa340619f5986090b Mon Sep 17 00:00:00 2001 From: Malfurious Date: Thu, 18 Aug 2022 17:43:05 -0400 Subject: cgit: Show proper idle times on the index page By default, the idle times shown by cgit only reflect the most recent push to the master branch - and that is the time of the push, not of the actual commit. This patch causes the age/timestamp to be set by pushes to any branch. The times will reflect the age of the youngest commit on any branch or tag. Signed-off-by: Malfurious --- local/triggers/push | 2 ++ 1 file changed, 2 insertions(+) (limited to 'local') diff --git a/local/triggers/push b/local/triggers/push index 6aa587a..7a3cb56 100755 --- a/local/triggers/push +++ b/local/triggers/push @@ -14,3 +14,5 @@ if ! [ -f "$head" ]; then echo "WARNING: The default branch is $head, but no such branch exists" >&2 fi fi + +git log -1 --all --date-order --format=%ci >agefile -- cgit v1.2.3