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

Re: Making submodules easier to work with

From
Steven Grimm <koreth@midwinter.com>
Date
May 1, 2008, 23:29 UTC
Message-ID
<3B9C16C0-0D0C-42D3-8315-72C8D8C88452@midwinter.com>
In-Reply-To
<20080501183837.GA4772@pvv.org>
On May 1, 2008, at 11:38 AM, Finn Arne Gangstad wrote:
> Where do we want to go with submodules?
I have two uses for submodules.

The first one is... well, not really submodules at all. I really want sparse checkout so I can avoid bothering with parts of the larger project tree I don't care about or need. But right now submodules are the only way to approximate sparse checkout, so until we have true sparse checkout support, I want to be able to get semantics that act like the submodules are just subdirectories in the supermodule with no special care required. For this use case, the "automatically update all my submodules and push all of them when I push the supermodule" behavior being discussed here, along with synchronizing local branches between the super and submodules, would be a huge usability improvement.

The second is closer to the current design's intended use case: a sort of version-controlled symbolic link. This is for libraries and other external dependencies. The current model is not too bad for this use case, though ideally I'd like to see it get as low-touch as, say, svn externals, where only one person on a development team needs to worry about setting up and updating submodules and they cause the right files to show up automatically for everyone else.

-Steve
Previous: Ping YinNext: Roman Shaposhnik
Message 20 of 22 in “Making submodules easier to work with (auto-update on checkout or merge, stash & restore submodules)”
  1. Tim HarperApr 30, 2008
  2. Tim HarperApr 30, 2008
  3. Andreas EricssonApr 30, 2008
  4. Johannes SchindelinApr 30, 2008
  5. Avery PennarunApr 30, 2008
  6. Ping YinApr 30, 2008
  7. Roman ShaposhnikApr 30, 2008
  8. Avery PennarunApr 30, 2008
  9. Tim HarperApr 30, 2008
  10. Avery PennarunApr 30, 2008
  11. Tim HarperApr 30, 2008
  12. Avery PennarunApr 30, 2008
  13. Roman ShaposhnikApr 30, 2008
  14. Avery PennarunApr 30, 2008
  15. Finn Arne GangstadMay 1, 2008
  16. Avery PennarunMay 1, 2008
  17. Roman ShaposhnikMay 6, 2008
  18. Avery PennarunMay 7, 2008
  19. Ping YinMay 8, 2008
  20. Steven GrimmMay 1, 2008
  21. Roman ShaposhnikMay 6, 2008
  22. Ping YinMay 1, 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.