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

Re: [RFC PATCH 0/9] Narrow/Sparse checkout round 3: "easy mode"

From
JPJames Pickens <jepicken@gmail.com>
Date
Aug 19, 2008, 21:10 UTC
Message-ID
<loom.20080819T210550-149@post.gmane.org>
In-Reply-To
<20080815142439.GA10609@laptop>
Nguyễn Thái Ngọc Duy <pclouds <at> gmail.com> writes:
> From user POV, we can now checkout a single file or a
> subdirectory (checking out subdirectory non-recursively is
> possible too). You may start with a narrow clone like:

Is there any reason for the change in terminology from "sparse" to "narrow"? I understand the difference between "partial" and "sparse", but I can't tell if there's any difference between "narrow" and "sparse". If they are the same thing, then I think "sparse" is the better term.

Show 5 quoted lines
> Last bit. "Narrow rules" for --path|--add-path|--remove-path is
> currently wildcards separated by colons. While it does the job,
> it does not allow to checkout easily a subdirectory
> non-recusively. I was thinking about '*' as "match everything
> except slashes" and '**' as "match everything even slashes".

I like this idea - it would make this much more intuitive to use, since '*' and '**' would work the same as they do in the shell (for shells that support '**' at least). I tried the patch in it's current form, and it took me a while to figure out that paths were non-recursive and '*' was matching everything, including slashes.

James
Previous: Nguyen Thai Ngoc DuyNext: Nguyen Thai Ngoc Duy
Message 9 of 10 in “Narrow/Sparse checkout round 3: "easy mode"”
  1. 0/9 Narrow/Sparse checkout round 3: "easy mode"Nguyễn Thái Ngọc Duy, Aug 15, 2008
  2. Junio C HamanoAug 16, 2008
  3. Nguyen Thai Ngoc DuyAug 17, 2008
  4. Junio C HamanoAug 17, 2008
  5. Junio C HamanoAug 17, 2008
  6. Eric RaibleAug 17, 2008
  7. Junio C HamanoAug 19, 2008
  8. Nguyen Thai Ngoc DuyAug 17, 2008
  9. James PickensAug 19, 2008
  10. Nguyen Thai Ngoc DuyAug 30, 2008

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.