Hi, Junio C Hamano wrote:
Matthias Urlichs [off-list ref] writes:
quoted
quoted
quoted
Files /dev/null and b/file3 differ
Of course, with LANG=de_DE.UTF-8 the situation is worse ...
A midway compromise solution would be to detect if either file
is binary ourselves and not to call diff but always say "Binary
files difer".
Actually, there's a better way:
$ diff -u /dev/null /tmp/ra
Binary files /dev/null and /tmp/ra differ
$ echo $?
2
So the trivial fix is to emit our own "Binary files FOO and BAR differ"
line if the exit status is 2.
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
If a man will go as far as he can see, he will be able to see farther when
he gets there.