dot

packages and services management
Log | Files | Refs | README

commit df3520c0666b78fb4ce29955892d68623d5e69c9
parent c1be2c1322cd6300e6b4c84ebe304d9381c2093a
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Thu, 10 Aug 2017 01:35:04 +0200

gin/bin/git-index: added diffstat

Diffstat:
Mgit/bin/git-index | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/git/bin/git-index b/git/bin/git-index @@ -96,15 +96,16 @@ do [ -f "commit/$commit.html" ] && continue echo "commit $commit" echo "$HEADER" > "commit/$commit.html" - git -C "$1" show "$commit" | sed ' + git -C "$1" show --stat -U3 "$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|.*|<span style="color: blue ;">&</span>| + /^-/ s|.*|<span style="color: red;" >&</span>| + /^@/ s|.*|<b style="color: blue;" >&</b>| + /^---$/, /^$/ s|(\+*)(-*)$|<span class="r">\1</span><span class="b">\2</span>| ' >> "commit/$commit.html" echo "$FOOTER" >> "commit/$commit.html" done