Re: gitignore broken in git 1.7.0.1: slash checks leading dirs
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Mar 5, 2010, 09:05 UTC
- Message-ID
- <4B90C974.2050405@viscovery.net>
- In-Reply-To
- <4B90C701.3070308@gmail.com>
Jiri Slaby schrieb:
> having 'linux' line in .gitignore makes 'include/linux/vga_switcheroo.h' > to be ignored
That's the behavior that I would expect.
Show 6 quoted lines
> though the documentation says: > *** > If the pattern does not contain a slash /, git treats it as a shell > glob pattern and checks for a match against the pathname without > leading directories. > ***
and this citation confirms my expectation. Note that it says "pathname", not "filename". 'include/linux' is a "pathname".
-- Hannes