summaryrefslogtreecommitdiffstats
path: root/tv/4lib
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-09-28 01:10:35 +0200
committertv <tv@shackspace.de>2015-09-28 01:11:57 +0200
commitce731718eda4266bf09d45434d98418f5efd195a (patch)
tree0afe4c0fddcff0aacb96824deaa04689771084c8 /tv/4lib
parentc88a7d3be5d9a8ee748cb8bdfac97de3277e0d5e (diff)
irc-announce: optimize diff --stat renderer
Diffstat (limited to 'tv/4lib')
-rw-r--r--tv/4lib/git.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/tv/4lib/git.nix b/tv/4lib/git.nix
index fe6401728..6f3654356 100644
--- a/tv/4lib/git.nix
+++ b/tv/4lib/git.nix
@@ -178,10 +178,7 @@ let
$id2..$id
git diff --stat $id2..$id \
- | sed '
- $!s/+/'$(green '&')'/g
- $!s/-/'$(red '&')'/g
- '
+ | sed '$!s/\(+*\)\(-*\)$/'$(green '\1')$(red '\2')'/'
)
done