Re: gitignore broken in git 1.7.0.1: slash checks leading dirs
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Mar 5, 2010, 17:25 UTC
- Message-ID
- <20100305172549.GA28562@progeny.tock>
- In-Reply-To
- <4B90CEDD.6020106@gmail.com>
Jiri Slaby wrote:
> Thinking about it, there is no way to specify a *filename* no matter > where it lies? I.e. patterns such as *.o matches also a/b/test.o/test.c? > Am I missing something?
Is
*.o !*.o/
what you are looking for? The first line matches *.o anywhere, and the second matches *.o anywhere as long as it is a directory.