diff options
author | Malfurious <m@lfurio.us> | 2022-08-18 17:43:05 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2022-08-18 17:43:05 -0400 |
commit | 7ac25bc55405b51dd89f38ffa340619f5986090b (patch) | |
tree | 6ac6e58dc0da6e1151417237dbb0622f297ec730 /local/triggers/push | |
parent | 18e9a5efbf13f0886b259e8f17c6d646a52cfb10 (diff) | |
download | srcnode-c92dee28447598904fcd2285cda3efd65ac1eb22.tar.gz srcnode-c92dee28447598904fcd2285cda3efd65ac1eb22.zip |
cgit: Show proper idle times on the index pagev0.1
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 <m@lfurio.us>
Diffstat (limited to 'local/triggers/push')
-rwxr-xr-x | local/triggers/push | 2 |
1 files changed, 2 insertions, 0 deletions
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 |