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 | |
parent | 18e9a5efbf13f0886b259e8f17c6d646a52cfb10 (diff) | |
download | srcnode-0.1.tar.gz srcnode-0.1.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>
-rw-r--r-- | docker/cgitrc | 3 | ||||
-rwxr-xr-x | local/triggers/push | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/docker/cgitrc b/docker/cgitrc index f53e7a2..6df01d2 100644 --- a/docker/cgitrc +++ b/docker/cgitrc @@ -1,7 +1,7 @@ # cgit config # see cgitrc(5) for details # -# possible todos: agefile, header, footer +# possible todos: header, footer css=/cgit.css logo=/cgit.png @@ -25,6 +25,7 @@ enable-tree-linenumbers=1 section-sort=1 repository-sort=age branch-sort=age +agefile=agefile max-repo-count=512 max-stats=year 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 |