dir.c: don't exclude whole dir prematurely
commitd589a67eceacd1cc171bbe94906ca7c9a0edd8c5
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 15 Feb 2016 09:03:39 +0000 (15 16:03 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Feb 2016 23:32:33 +0000 (15 15:32 -0800)
treefa380845f615c5f0742f6ff61bd20befbf06db77
parentc62a91736a6dcd909167cf9fbb751d65c85482dd
dir.c: don't exclude whole dir prematurely

If there is a pattern "!foo/bar", this patch makes it not exclude
"foo" right away. This gives us a chance to examine "foo" and
re-include "foo/bar".

Helped-by: brian m. carlson <sandals@crustytoothpaste.net>
Helped-by: Micha Wiedenmann <mw-u2@gmx.de>
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
t/t3007-ls-files-other-negative.sh [new file with mode: 0755]