Merge branch 'nd/ignore-then-not-ignore'
authorJunio C Hamano <gitster@pobox.com>
Wed, 7 Oct 2015 20:38:17 +0000 (13:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Oct 2015 20:38:17 +0000 (13:38 -0700)
Allow a later "!/abc/def" to override an earlier "/abc" that
appears in the same .gitignore file to make it easier to express
"everything in /abc directory is ignored, except for ...".

* nd/ignore-then-not-ignore:
dir.c: don't exclude whole dir prematurely if neg pattern may match
dir.c: make last_exclude_matching_from_list() run til the end

1  2 
Documentation/gitignore.txt
dir.c
t/t3001-ls-files-others-exclude.sh
Simple merge
diff --cc dir.c
Simple merge
Simple merge