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

Re: Add an option to automatically submodule update on checkout

From
Junio C Hamano <gitster@pobox.com>
Date
May 9, 2017, 02:58 UTC
Message-ID
<xmqqtw4u4tz6.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<002201d2c81a$9ff76060$dfe62120$@nexbridge.com>
"Randall S. Becker" <rsbecker@nexbridge.com> writes:
Show 8 quoted lines
> I have to admit that I just assumed it would have to work that way
> this would not be particularly useful. However, in thinking about
> it, we might want to limit the depth of how far -b <name> takes
> effect. If the super module brings in submodules entirely within
> control of the development group, having -b <name> apply down to
> leaf submodules makes sense (in some policies). However, if some
> submodules span out to, say, gnulib, that might not make
> particular sense.

I do not see a strong reason to avoid your own branches in "other people's project" like this.

The submodule's upstream may be a project you have no control over, but the repository you have locally is under your total control and you can use any branch names to suit the need of your project as the whole (i.e. the superproject and submodules bound to it).

The fact that local branch names are under your control and for your own use is true even when you are not using submodules, by the way.

Previous: Stefan BellerNext: Randall S. Becker
Message 9 of 11 in “Add an option to automatically submodule update on checkout”
  1. Ciro SantilliMay 6, 2017
  2. Randall S. BeckerMay 8, 2017
  3. Stefan BellerMay 8, 2017
  4. Randall S. BeckerMay 8, 2017
  5. Stefan BellerMay 8, 2017
  6. Randall S. BeckerMay 8, 2017
  7. Brandon WilliamsMay 8, 2017
  8. Stefan BellerMay 8, 2017
  9. Junio C HamanoMay 9, 2017
  10. Randall S. BeckerMay 9, 2017
  11. Brandon WilliamsMay 8, 2017

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.