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

Re: Why are submodules not automatically handled by default or at least configurable to do so?

From
Nazri Ramliy <ayiehere@gmail.com>
Date
Oct 26, 2015, 04:48 UTC
Message-ID
<CAEY4ZpPduXXqgW3rWn9rzkpHrTvY8QfPX=YcBZ_DpyVwnsZ6jw@mail.gmail.com>
In-Reply-To
<D4E5E890658.000004DCjohsmi9933@inbox.com>
On Mon, Oct 26, 2015 at 7:10 AM, John Smith <johsmi9933@inbox.com> wrote:
> When would people routinely check out a branch and want to stay with the submodules as
> the have been checked out for the old branch?

I do this a lot. At my $dayjob we have a super project with bunch of sub projects. Each subproject has its corresponding rpm spec file in the superproject - it's quite often that I work on a "git-merge-base--octopus" branch that updates only the spec files and nothing else - so when changing between branches I don't care what states the submodules are in. When the fixes to the spec files are ready I just checkout to the respective branches and merge in the changes - I don't actively do "git submodule update" when switching to different branches.

nazri
Previous: Junio C HamanoNext: Jens Lehmann
Message 5 of 11 in “Why are submodules not automatically handled by default or at least configurable to do so?”
  1. John SmithOct 25, 2015
  2. Chris PackhamOct 26, 2015
  3. Stefan BellerOct 26, 2015
  4. Junio C HamanoOct 26, 2015
  5. Nazri RamliyOct 26, 2015
  6. Jens LehmannOct 26, 2015
  7. Nazri RamliyOct 28, 2015
  8. NickOct 27, 2015
  9. Davide FiorentinoOct 27, 2015
  10. NickOct 27, 2015
  11. Konstantin KhomoutovOct 27, 2015

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.