Revert "dir.c: don't exclude whole dir prematurely if neg pattern may match"
commit8c722360d1277259d4baec951e1488086f775214
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 8 Jan 2016 12:05:25 +0000 (8 19:05 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Jan 2016 19:24:14 +0000 (8 11:24 -0800)
tree4539c7a62a9f42aa6e5d51189789039e0c39e001
parent57534ee77d22e725d971ee89c77dc6aad61c573f
Revert "dir.c: don't exclude whole dir prematurely if neg pattern may match"

This reverts commit 57534ee77d22e725d971ee89c77dc6aad61c573f. The
feature added in that commit requires that patterns behave the same way
from anywhere. But some patterns can behave differently depending on
current "working" directory. The conditions to catch and avoid these
patterns are too loose. The untracked listing[1] and sparse-checkout
selection[2] can become incorrect as a result.

  [1] http://article.gmane.org/gmane.comp.version-control.git/283520
  [2] http://article.gmane.org/gmane.comp.version-control.git/283532

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