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

sparse checkout : ignore paths

From
TKTushar Kapila <tushar.kapila@gmail.com>
Date
Jan 23, 2017, 11:45 UTC
Message-ID
<CALNyQkyy_prP60kp_DpMzG9+affqPW0-z6F81R4OSgHg0QFc+g@mail.gmail.com>
When we clone/ pull with : config core.sparsecheckout true

We can specify paths to include. Would be good to explicitly specify paths to exclude too. So I can include want/ but exclude want/bin/

Similar to .git/info/sparse-checkout can we have a .git/info/sparse-ignore-checkout optional file?

Logic would be to see if a path matches that is in .git/info/sparse-checkout then see if its flagged in .git/info/sparse-ignore-checkout , do not download if blocked in .git/info/sparse-ignore-checkout. If the file does not exist, then nothing ignored.

Regards, Tushar Kapila

Next: Johannes Schindelin
Message 1 of 2 in “sparse checkout : ignore paths”
  1. Tushar KapilaJan 23, 2017
  2. Johannes SchindelinJan 23, 2017

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.