Re: .gitignore sub-dir exclusions not overriding '*'
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Nov 19, 2014, 09:48 UTC
- Message-ID
- <CACsJy8BHvucnEAW065OXOe5NBQkxp7+8HJb7XCGYgOa=pkxLVA@mail.gmail.com>
- In-Reply-To
- <20141119034010.GA18145@tower.spodhuis.org>
On Wed, Nov 19, 2014 at 10:40 AM, Phil Pennock <phil-gitml@phil.spodhuis.org> wrote:
Show 6 quoted lines
> Expected to work as .gitignore in top-level of repo: > > * > !**/*.asc > !.gitignore >
gitignore man page has this "It is not possible to re-include a file if a parent directory of that file is excluded". In this case, directory "foo" is ignored by "*". Although it makes sense for this particular case to re-include something in foo because we can clearly see there are rules to re-include. It's on my todo list, but I don't know when it will be implemented.
-- Duy