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

something like git-check-ignore but considering only patterns?

From
Britton Kerin <britton.kerin@gmail.com>
Date
Dec 28, 2021, 23:41 UTC
Message-ID
<CAC4O8c-2sxHyAjtd4jZQcjzX4d9+19AUx-h13nttjwP=pd1Ukw@mail.gmail.com>

I'd like to query if a file e.g. symLinkToDir/foo.o would be ignored if it were in a real dir instead (don't ask) but in a general way and hopefully without parsing and matching all the .gitignore entries myself. Is it possible?

Thanks, Britton

Next: Elijah Newren
Message 1 of 3 in “something like git-check-ignore but considering only patterns?”
  1. Britton KerinDec 28, 2021
  2. Elijah NewrenDec 29, 2021
  3. Britton KerinJan 2, 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.