From: Nguyễn Thái Ngọc Duy Date: Mon, 15 Feb 2016 09:03:38 +0000 (+0700) Subject: dir.c: support marking some patterns already matched X-Git-Tag: v2.8.0-rc0~29^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c62a91736a6dcd909167cf9fbb751d65c85482dd?ds=inline;hp=c62a91736a6dcd909167cf9fbb751d65c85482dd dir.c: support marking some patterns already matched Given path "a" and the pattern "a", it's matched. But if we throw path "a/b" to pattern "a", the code fails to realize that if "a" matches "a" then "a/b" should also be matched. When the pattern is matched the first time, we can mark it "sticky", so that all files and dirs inside the matched path also matches. This is a simpler solution than modify all match scenarios to fix that. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano ---