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

Re: sub module branches

From
Peter Krefting <peter@softwolves.pp.se>
Date
Mar 8, 2010, 13:05 UTC
Message-ID
<alpine.DEB.2.00.1003081403110.30270@ds9.cixit.se>
In-Reply-To
<b42431c81003080314j694114b5o433988470f13328a@mail.gmail.com>
Mahesh Vaidya:
> If I create branch in source, will it propogate to remaining submodules ?
No, the branch is only created in the top-level module.
> or in other words can I have "global branch" and "global tag"

The branch is "global" in the way that it does contain a reference to the current commit of the submodule. You do not *need* to have a local branch in the submodule to change where it pointed to from the top-level module. It does help to have it, though, as you eventually probably will want to push your changes somewhere, and then you need to have a symbolic reference in the submodule(s) you have branched as well.

-- 
\\// Peter - http://www.softwolves.pp.se/
Previous: Mahesh VaidyaNext: Avery Pennarun
Message 2 of 3 in “sub module branches”
  1. Mahesh VaidyaMar 8, 2010
  2. Peter KreftingMar 8, 2010
  3. Avery PennarunMar 9, 2010

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.