Commit da056a91 authored by Glen Mével's avatar Glen Mével

fix `colordiff`, which relies on output being written in English

parent 20915fbe
......@@ -20,10 +20,12 @@ for arg in "$@" ; do
fi
done
export LANG=C
if [ "$color" == "always" -o '(' "$color" == "auto" -a -t 1 ')' ] ; then
/usr/bin/diff -u --color=never "${args[@]}" \
|sed 's/^Only in/\x1B[43;1;30mOnly in/;
s/^Files/\x1B[45;1mFiles/;
s/^File/\x1B[45;1mFile/;
s/^diff/\x1B[1;30mdiff/;
s/^--- /\x1B[1;31m--- /;
s/^+++ /\x1B[1;32m+++ /;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment