dot

packages and services management
Log | Files | Refs | README

commit 825a42cb27116e73e6ba4acf754aafd4978fc9f5
parent 42f9e60efb737f6c348d830d3ef56c8529d786bd
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Mon, 17 Jul 2017 22:56:56 +0200

following symlinks, better log format

Diffstat:
Mbin/www-git | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/bin/www-git b/bin/www-git @@ -4,11 +4,12 @@ FOOTER='</pre></body></html>' log() { - git -C "$1" log --graph --format='{%% %H %%} %ci%d%n %cn <%ce>%n %s%n' | + git -C "$1" log --graph --date=short \ + --format='{%% %H %%} %cd%d%n%cn <%ce>%n %s%n' | sed -r ' s|&|\&amp;|g s|<|\&lt;|g - s|\{% ([^%]{8})([^%]*) %\}|<a href="commit/\1\2.html">\1</a>| + s|\{% ([0-9a-f]+) %\}|<a href="commit/\1.html">\1</a>| ' } @@ -57,7 +58,7 @@ files() } -find "$1" -type d -name .git | while IFS='' read -r dir +find -L "$1" -type d -name .git | while IFS='' read -r dir do repo="${dir%/.git}" name="${repo##*/}"