apply --cached: do not check newly added file in the working tree
authorJunio C Hamano <junkio@cox.net>
Wed, 17 May 2006 23:56:13 +0000 (16:56 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 17 May 2006 23:56:13 +0000 (16:56 -0700)
The --cached mode does not deal with the working tree, so we
should not check it with lstat.  An earlier code omitted the
call to lstat but forgot to omit the check for the errno.

Signed-off-by: Junio C Hamano <junkio@cox.net>

No differences found