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

Re: Interpretation of '/' changed sparse-checkout

From
CMCaleb Marchent <cmarchent@aminocom.com>
Date
May 25, 2012, 10:21 UTC
Message-ID
<loom.20120525T120226-506@post.gmane.org>
In-Reply-To
<20120524142858.GA10938@do>
Nguyen Thai Ngoc Duy <pclouds <at> gmail.com> writes:
Show 6 quoted lines
> 
> As a user I agree that "/" should mean "everything under the sky" and
> your use case should work (i.e. it is broken in 1.7.10.2). If you can
> build git, you can try the patch below. I'll submit a patch for
> inclusion to git later (perhaps with optimization for this special case).
> 
Many Thanks Duy!, that patch works so please do submit the patch.
That just leaves the other issue I noted in my original posting - if I 
exclude a path from the top-level with a 1.7.2.5 format sparse-checkout
 file, git 1.7.10.2 will exclude a sub-directory with the same name:

/ !exclude/

Unfortunately (for me), I think this is correct behaviour of 1.7.10.2 because in 1.7.10.2 you can now do:

/ !/exclude/ /exlucde/reinclude/

which makes sense and correctly excludes "/exclude", but not "/exclude/reinclude/exclude". The flexibility to have:

/ !CVS/

or something like that is required; so I don't believe should be changed?
Previous: Nguyen Thai Ngoc Duy
Message 4 of 4 in “Interpretation of '/' changed sparse-checkout”
  1. Caleb MarchentMay 23, 2012
  2. Caleb MarchentMay 23, 2012
  3. Nguyen Thai Ngoc DuyMay 24, 2012
  4. Caleb MarchentMay 25, 2012

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.