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:

committed by
Junio C Hamano

parent
9cb18f56fd
commit
3cb567386d
3
t/t4013/diff.diff_--name-status_dir2_dir
Normal file
3
t/t4013/diff.diff_--name-status_dir2_dir
Normal file
@ -0,0 +1,3 @@
|
||||
$ git diff --name-status dir2 dir
|
||||
A dir/sub
|
||||
$
|
Reference in New Issue
Block a user