]> snippets.scripts.mit.edu Git - Scripts/git/.git/blobdiff - git-hooks/zephyr-post-receive
zephyr-post-receive: Translate Git trailing space highlighting
[Scripts/git/.git] / git-hooks / zephyr-post-receive
index 6feebad3b11690a2e78d985e3d74615f61dae2ed..769b63a3c1145a30d6340786a8a70252ba39eb85 100755 (executable)
@@ -7,6 +7,8 @@
 # For example:
 #  aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master
 
+export LC_ALL=en_US.UTF-8
+
 class=`git config zephyr.class`
 instance=`git config zephyr.instance`
 zsig=`git config zephyr.zsig`
@@ -75,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