From: Nguyen Thai Ngoc Duy Date: Mon, 07 Nov 2011 10:18:15 GMT Subject: Re: [PATCH 3/4] Documentation: unanchored gitignore patterns match basename Message-ID: In-Reply-To: <20111107080926.GC30486@elie.hsd1.il.comcast.net> 2011/11/7 Jonathan Nieder : > The rule described by v1.7.1.1~31^2 (gitignore.5: Clarify matching > rules, 2010-03-05) is just false: simple gitignore patterns without a > slash like "foo" and "cscope*" have always matched files in all > directories, not just the toplevel, and a question mark cannot be used > to match the slash separating path components. > > For example: > >        foo/ - matches directories named "foo" throughout the tree >        Documentation?foo - does not match Documentation/foo > > Reported-by: Y.G. > Signed-off-by: Jonathan Nieder Acked-by: Nguyễn Thái Ngọc Duy -- Duy