dot

packages and services management
Log | Files | Refs | README

commit c1be2c1322cd6300e6b4c84ebe304d9381c2093a
parent 2ed0c7322b38f53f2e14c2b7a4a7644927d07c80
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Thu, 10 Aug 2017 01:18:24 +0200

git/bin/git-index: more compact git log

Diffstat:
Mgit/bin/git-index | 8++++----
Mpkg/bin/pkg-service | 1-
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/git/bin/git-index b/git/bin/git-index @@ -67,8 +67,7 @@ cd "git/$NAME" || exit 1 printf '</pre><pre>' - git -C "$1" log --graph --date=short \ - --format='%H %cd %cn <%ce>%n%n%s%n%n' | + git -C "$1" log --graph --date=short --format='%H %cd %cn <%ce>%n%s%n' | sed -r ' s|&|\&amp;|g s|<|\&lt;|g @@ -100,11 +99,12 @@ do git -C "$1" show "$commit" | sed ' s|&|\&amp;|g s|<|\&lt;|g + s|^[A-Z][a-z]*:|<b>&</b>| /^commit/ s|.*|<b>&</b>| /^diff/ s|.*|<b>&</b>| /^+/ s|.*|<span style="color: green;">&</span>| - /^-/ s|.*|<span style="color: red;" >&</span>| - /^@/ s|.*|<b style="color: blue;" >&</b>| + /^-/ s|.*|<span style="color: red ;">&</span>| + /^@/ s|.*|<span style="color: blue ;">&</span>| ' >> "commit/$commit.html" echo "$FOOTER" >> "commit/$commit.html" done diff --git a/pkg/bin/pkg-service b/pkg/bin/pkg-service @@ -1,4 +1,3 @@ -set -x usage() { printf '%s ( start | stop | restart | status ) [name]\n' "${0##*/}"