Code

ls-files: require worktree when --deleted is given
authorJeff King <peff@peff.net>
Tue, 17 Mar 2009 09:03:19 +0000 (05:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Mar 2009 22:12:40 +0000 (15:12 -0700)
commit8ad3dae3a76ee42983da89ea9b5d9a4688f58f93
treed35b58c4f4fcfd92bef61c4ad91455ce0b099a01
parentfcfdf797db015e13623645c0be049db679d5daaa
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