Re: [PATCH/alternative/raw and rough] setup.c: denote repo wide pathspecs by ':'
- From
- James Pickens <jepicken@gmail.com>
- Date
- Mar 1, 2011, 18:31 UTC
- Message-ID
- <AANLkTimFuU1QduAfwred0zu6LdWN2eHo9X+T4=_qfh_C@mail.gmail.com>
- In-Reply-To
- <7vsjv6evy4.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
> On the other hand, it is natural to expect that > > $ git grep -e frotz ".../*.txt" > > should find *.txt files _only_ at the root level, so it is not as useful as > the --full-tree (or --root).
I've often wished Git supported the zsh '**' wildcard to match anything, including slashes. Here's another case where it would be useful - to match *.txt everywhere, you'd use ".../**.txt", and it leaves you the option of using ".../*.txt" if you really want to find *.txt only at the root level. Of course, it may be very difficult to implement...
James