Re: feature request: excluding files/paths from "git grep"

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

 



Michael J Gruber <git@xxxxxxxxxxxxxxxxxxxx> writes:

> Junio C Hamano venit, vidit, dixit 26.02.2015 21:59:
>
>> So that does not sound to me a summary of the discussion at all.
>
> Well, your conditional
>
>> I do not recall its conclusion, but it it were "Yes, that is what it
>> means", then it might be reasonable to:
>> 
>>  - have "git grep" ignore paths marked with -diff by default
>>    (perhaps "-a" option to disable, just like GNU)
>> 
>>  - have "git grep" pay attention to diff.textconv and search in the
>>    result of textconv filter.
>
> and Jeff's "Yes" on that condition certainly read like that to me: Make
> "git grep" react to "diff", "-diff" attributes in the same way as "git
> diff".

Ah, OK, I missed that flow of thought.

I read the conclusion as "_if_ using "diff" attributes is enough for
this purpose, then there is no code to be written ... but 'grep' and
'diff' may want to be different."

Once we know if they do *not* want to be different, I agree that it
may make things more consistent to turn --textconv on for binary
files when running grep.


--
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]