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

Re: [RFC PATCH 00/12] Sparse checkout

From
JPJames Pickens <jepicken@gmail.com>
Date
Jul 24, 2008, 17:59 UTC
Message-ID
<loom.20080724T171151-310@post.gmane.org>
In-Reply-To
<fcaeb9bf0807240200x10a6a267h4c37e4566da967ba@mail.gmail.com>
Nguyen Thai Ngoc Duy <pclouds <at> gmail.com> writes:
> This one is difficult (and may probably produce more intrusive patch).
> Let's see what I can do.

This is not a high priority for me, so if the added difficulty/intrusiveness means it would take longer for the sparse checkout capability to make it into mainline git, then I would drop this request, or at least delay it until some later time.

Show 9 quoted lines
> >  Second, I would want a capability to checkout and release directories
> >  incrementally, similar to how we do it in cvs.  For example, I might do
> >  the following in cvs:
> 
> You can do that with "git checkout --path" (non-recursive checkout aside):
> 
> $ git checkout --path=A                     # checkout full A
> $ git checkout --path=A/B1/C1               # no, limit to A/B1/C1 only
> $ git checkout --path=A/B1/C1:A/B2          # extend to A/B2 too

My point was not that incremental checkout is impossible, just that it would be easier if I didn't have to re-type the full path list again. Suppose I had 9 directories (A/B1 through A/B9) in my sparse checkout, and I wanted to add a 10th directory (A/B10). It would be much easier to type something like

$ cd A $ git checkout B10

instead of
$ git checkout --path=A/B1:A/B2:A/B3:A/B4:A/B5:A/B6:A/B7:A/B8:A/B9:A/B10

Another thing I thought of, which I'm not sure if it's sensible or not, is to make sparse checkout a persistent branch attribute by creating a .gitpaths (or whatever) file containing a list of directories that should be checked out. This would be analogous to the .gitmodules file. The .gitpaths file could then be checked in, and applied automatically any time the user checks out a branch containing such file. This is just an idea for discussion, not a feature request.

James
Previous: Nguyen Thai Ngoc DuyNext: Nguyen Thai Ngoc Duy
Message 19 of 27 in “Sparse checkout”
  1. 00/12 Sparse checkoutNguyễn Thái Ngọc Duy, Jul 23, 2008
  2. Nguyen Thai Ngoc DuyJul 23, 2008
  3. Johannes SchindelinJul 23, 2008
  4. Nguyen Thai Ngoc DuyJul 23, 2008
  5. Johannes SchindelinJul 23, 2008
  6. Nguyen Thai Ngoc DuyJul 24, 2008
  7. Johannes SchindelinJul 24, 2008
  8. Nguyen Thai Ngoc DuyJul 24, 2008
  9. Johannes SchindelinJul 24, 2008
  10. Nguyen Thai Ngoc DuyJul 24, 2008
  11. Avery PennarunJul 24, 2008
  12. Johannes SchindelinJul 24, 2008
  13. Nguyen Thai Ngoc DuyJul 24, 2008
  14. Jan HudecAug 3, 2008
  15. Johannes SchindelinAug 3, 2008
  16. Nguyen Thai Ngoc DuyAug 4, 2008
  17. James PickensJul 24, 2008
  18. Nguyen Thai Ngoc DuyJul 24, 2008
  19. James PickensJul 24, 2008
  20. Nguyen Thai Ngoc DuyJul 24, 2008
  21. James PickensJul 24, 2008
  22. Jakub NarebskiJul 24, 2008
  23. Nguyen Thai Ngoc DuyJul 24, 2008
  24. Jakub NarebskiJul 24, 2008
  25. Nguyen Thai Ngoc DuyJul 24, 2008
  26. Avery PennarunJul 25, 2008
  27. Johannes SchindelinJul 25, 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.