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

Re: [RFC PATCH 00/12] Sparse checkout

From
Avery Pennarun <apenwarr@gmail.com>
Date
Jul 24, 2008, 16:22 UTC
Message-ID
<32541b130807240922r733dce6aw8b123bbb28c9002@mail.gmail.com>
In-Reply-To
<fcaeb9bf0807240650v6eab6ad4n63c39973b3b43658@mail.gmail.com>
On 7/24/08, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
> OK. I am lost here. I do not know how putting sparse prefix and index
>  together could fix "it" (I think you meant the index guarding).

I think what Dscho is saying is simply that it's natural to put information about the currently-checked-out tree in the index, and unnatural to put it in the config.

If I switch branches, or checkout different versions, or git add, or git rm, it all affects the index, never the config. The index stores the attributes of which files are checked out, and can detect whether those files are different from before. Choosing which subtrees to check out sounds a lot more like one of those operations than it does like a configuration change.

Also, I don't know if git supports this right now, but I can imagine situations where you'd want to have more than one index (and associated working trees) sharing the exact same .git folder. It would be fine to share the config between these parallel checkouts, but you certainly couldn't share the index. And you probably wouldn't want to check out exactly the same set of subtrees in every working tree.

The information required to do a checkout is in the index. And "sparse checkout" is all about checking out :)

Have fun,
Avery
Previous: Nguyen Thai Ngoc DuyNext: Johannes Schindelin
Message 11 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.