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)
commitd91d4c2c500b17d50359693a406a2c68b65330fe
treeaecd6264519055a37978e546b1bddc39e9130190
parentb7627278e200d8a80df6ee437b1a01d88f2b4883
apply --cached: do not check newly added file in the working tree

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>
apply.c