ls-files: require worktree when --deleted is given
commit67c176f549daf5530cabbb801de2b5feb0db82f4
authorJeff King <peff@peff.net>
Tue, 17 Mar 2009 09:03:19 +0000 (17 05:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 22 Mar 2009 06:19:27 +0000 (21 23:19 -0700)
tree0861313fdbeecfd571e59c9c12b75751faa0617e
parent7ad3c52e2dc8e81aafa615fb8b65ad99b6a62172
ls-files: require worktree when --deleted is given

The code will end up calling lstat() to check whether the
file still exists; obviously this doesn't work if we're not
in the worktree.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-ls-files.c