Re: multiple source file extensions

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

 



On Sat, May 2, 2015 at 9:04 AM, Duy Nguyen <pclouds@xxxxxxxxx> wrote:
> On Fri, May 01, 2015 at 09:11:01PM -0400, Jeff King wrote:
>> Unfortunately there is no way to use curly braces with git's pathspec,
>> so you have to write out three separate `*` arguments rather than using
>> the shell-style {cc,cpp,h}.
>
> Noted. Need to add curly brace support in pathspec :-)

Naah people can just do

git grep pattern -- '*'.{cc,cpp,h}

and bash will take care of expanding it into three separate arguments.
Obscure, but pathspec is also obscure..
-- 
Duy
--
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]