git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
CSCarl Smedstad <carl.smedstad@protonmail.com>
Date
May 24, 2022, 13:03 UTC
Message-ID
<hl3lllnkPVswb8IZoaMCS62N42epy97_8rLH8qrvSGCbKoovP5_qjtq4nrot5-h-q_7KOu-JpPX4nC0f74BXm6uWdtxosa6z5niHqAJKRUw=@protonmail.com>
In-Reply-To
<xmqqilpwru9z.fsf@gitster.g>
Show 11 quoted lines
> 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!

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 9 in “check-ignore: --non-matching without --verbose”
  1. check-ignore: --non-matching without --verboseCarl Smedstad via GitGitGadget, May 23, 2022
  2. Junio C HamanoMay 23, 2022
  3. Carl SmedstadMay 24, 2022
  4. Junio C HamanoMay 24, 2022
  5. Ævar Arnfjörð BjarmasonMay 24, 2022
  6. Derrick StoleeMay 23, 2022
  7. Carl SmedstadMay 24, 2022
  8. check-ignore: --non-matching without --verboseCarl Smedstad via GitGitGadget, May 24, 2022
  9. Junio C HamanoMay 24, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.