Merge branch 'jc/ls-files-killed-optim'
commit4c4d9d9b654db3eecb6e1107e814a737eafce0d6
authorJunio C Hamano <gitster@pobox.com>
Wed, 11 Sep 2013 22:03:28 +0000 (11 15:03 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Sep 2013 22:03:28 +0000 (11 15:03 -0700)
tree986cc418ff474dd998c2ceeb0d3652dc502dfd92
parent135be1ee2b6cc5b006974e38111990f0e22accd5
parent680be044d98b3b703bc33d546a987c19b3779aeb
Merge branch 'jc/ls-files-killed-optim'

"git ls-files -k" needs to crawl only the part of the working tree
that may overlap the paths in the index to find killed files, but
shared code with the logic to find all the untracked files, which
made it unnecessarily inefficient.

* jc/ls-files-killed-optim:
  dir.c::test_one_path(): work around directory_exists_in_index_icase() breakage
  t3010: update to demonstrate "ls-files -k" optimization pitfalls
  ls-files -k: a directory only can be killed if the index has a non-directory
  dir.c: use the cache_* macro to access the current index
builtin/ls-files.c
dir.c
dir.h
t/t3010-ls-files-killed-modified.sh