Re: 'git add' regression in git-1.7?
Jeff King <peff@peff.net> writes:
Show 8 quoted lines
> Another option is to declare the current behavior wrong. Letting the
> shell glob produces different results for obvious reasons:
>
> $ git add b* ;# will fail, because we see individual pathspecs
>
> but perhaps that is the "feature" of letting add glob itself. Personally
> I have never asked "git add" to glob on my behalf, so I don't know why
> people would do it.
I know of one reason:
$ git add '*.[ch]'
will add a/b.c and c/d/f.h for you.