From ce731718eda4266bf09d45434d98418f5efd195a Mon Sep 17 00:00:00 2001
From: tv <tv@shackspace.de>
Date: Mon, 28 Sep 2015 01:10:35 +0200
Subject: [PATCH] irc-announce: optimize diff --stat renderer

---
 tv/4lib/git.nix | 5 +----
 1 file changed, 1 insertion(+), 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