summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7ad3c52)
raw | patch | inline | side by side (parent: 7ad3c52)
author | Jeff King <peff@peff.net> | |
Tue, 17 Mar 2009 09:03:19 +0000 (05:03 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 22 Mar 2009 06:19:27 +0000 (23:19 -0700) |
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>
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 | patch | blob | history |
diff --git a/builtin-ls-files.c b/builtin-ls-files.c
index 9dec282fba6ba22e37d13bdc5e35fa4a031433b5..ca6f33d0466572863db7dbd4c3079dcb06caa4e0 100644 (file)
--- a/builtin-ls-files.c
+++ b/builtin-ls-files.c
}
if (!strcmp(arg, "-d") || !strcmp(arg, "--deleted")) {
show_deleted = 1;
+ require_work_tree = 1;
continue;
}
if (!strcmp(arg, "-m") || !strcmp(arg, "--modified")) {