[ENHANCEMENT] Allow '**' pattern in .gitignore
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Oct 2, 2012, 07:21 UTC
- Message-ID
- <CALkWK0nXfeAnFfdFtdDNdEwtk0mMPtpYbg8sPzfrEXUpXsGQOA@mail.gmail.com>
Hi,
I've often found the '**' (extended) shell glob useful for matching any string crossing directory boundaries: it's especially useful if you only have a toplevel .gitignore, as opposed to a per-directory .gitignore. Unfortunately, .gitignore currently uses fnmatch(3), and doesn't recognize '**'. Would extending the .gitignore format to accept this be a useful feature? Would it involve re-implementing and extending fnmatch, or is there some other way?
Ram