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>
This commit is contained in:
Johannes Schindelin
2007-07-03 16:01:06 +01:00
committed by Junio C Hamano
parent 9cb18f56fd
commit 3cb567386d
3 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,3 @@
$ git diff --name-status dir2 dir
A dir/sub
$