MinGW: fix diff --no-index /dev/null ...
commitdba002b9e521c639847650fbaeb8b87b66b9562e
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 7 Mar 2009 15:36:09 +0000 (7 16:36 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 7 Mar 2009 15:41:35 +0000 (7 16:41 +0100)
treea9f39519dc8668bce10495848e25ce628a9e2ab2
parentfc048d74273cbf98c412916dd3332d03bf334c79
MinGW: fix diff --no-index /dev/null ...

When launching "diff --no-index" with a parameter "/dev/null", the MSys
bash converts the "/dev/null" to a "nul", which usually makes sense.  But
diff --no-index got confused and tried to access a _file_ called "nul".

While at it, the comment in t4012, expressed as ":# <text>" was turned
into ": <text>" so that MSys' path name mangling does not kick in.

With this patch, t4012 passes in msysGit.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
diff-no-index.c
t/t4012-diff-binary.sh