zephyr-post-receive: Translate Git trailing space highlighting master origin/HEAD origin/master
authorAnders Kaseorg <andersk@mit.edu>
Tue, 11 Apr 2017 02:03:28 +0000 (22:03 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Tue, 11 Apr 2017 02:03:28 +0000 (22:03 -0400)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
git-hooks/zephyr-post-receive

index 595234c22b9ed3e69bcca6081851fa33a7d1ad4e..769b63a3c1145a30d6340786a8a70252ba39eb85 100755 (executable)
@@ -77,6 +77,7 @@ while read oldrev newrev refname; do
          -e 's/\e\[31m/@color(red)/g' \
          -e 's/\e\[32m/@color(green)/g' \
          -e 's/\e\[36m/@color(cyan)/g' \
+         -e 's/\e\[41m/}@i{@color(red)/g' \
          -e '1s/^/@{/' \
          -e '$s/$/}/') |
     zwrite -c "$class" -i "${instance:-$shortrev}" -s "$zsig: $refname" -d