diff --no-index: fix --name-status with added files
commit3cb567386d5d0349bfb5e3aaf85e973faf685dda
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Tue, 3 Jul 2007 15:01:06 +0000 (3 16:01 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Jul 2007 20:44:30 +0000 (3 13:44 -0700)
tree86865561fd3ff11e22f3832eccd4a6e29d81f120
parent9cb18f56fdee6885884f5f08bd5335a42d9034dc
diff --no-index: fix --name-status with added files

Without this patch, an added file would be reported as /dev/null.

Noticed by David Kastrup.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
t/t4013-diff-various.sh
t/t4013/diff.diff_--name-status_dir2_dir [new file with mode: 0644]