]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/ls-files.c
Read .gitignore from index if it is skip-worktree
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 20 Aug 2009 13:47:01 +0000 (20:47 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Aug 2009 00:13:33 +0000 (17:13 -0700)
commitc28b3d6e7b0471a02f81324a90b26effae0f4bde
tree8703845ea95ac8755a183d18fd13540eb7768a1e
parentb5041c5f3b9ea70ce7aa9711af6ed6f2d02909b0
Read .gitignore from index if it is skip-worktree

This adds index as a prerequisite for directory listing (with
exclude).  At the moment directory listing is used by "git clean",
"git add", "git ls-files" and "git status"/"git commit" and
unpack_trees()-related commands.  These commands have been
checked/modified to populate index before doing directory listing.

add_excludes_from_file() does not enable this feature, because it
is used to read .git/info/exclude and some explicit files specified
by "git ls-files".

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/api-directory-listing.txt
builtin-clean.c
builtin-ls-files.c
dir.c
t/t3001-ls-files-others-exclude.sh
t/t7300-clean.sh