Re: 'git add' regression in git-1.7?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff King <peff@xxxxxxxx> writes:

> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]