Subject: Re: [PATCH] check-ignore: --non-matching without --verbose

From: Junio C Hamano <[email-masked]>
Date: Tue, 24 May 2022 12:18:10 -0700

Carl Smedstad <[email-masked]> writes:

>> Not commenting on the patch itself, but ...
>>
>> > find . |
>> > git check-ignore --verbose --non-matching |
>> > grep $'^::\t' |
>> > sed -e 's/.*\t//'
>>
>> ... feeding grep output to sed caught my eyes. Isn't that equivalent to
>>
>> git ... |
>> sed -n '/^::\t/s/.*\t//p'
>
> That is indeed equivalent. TIL about regular-expression addresses in
> sed, thanks!

I however suspect that these "\t"'s should be spelled out as an
actual TAB in the final production version for portability.

Thanks.