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

From: Junio C Hamano <[email-masked]>
Date: Mon, 23 May 2022 11:14:16 -0700

"Carl Smedstad via GitGitGadget" <[email-masked]> writes:

> The motivation for this is to use the underutilized invocation of
> --non-matching without --verbose to create a shorthand for what could be
> achieved by:

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'

?