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

Re: RFC/RFH submodule handling in big setups

From
JHJan Hudec <bulb@ucw.cz>
Date
Jan 7, 2008, 20:07 UTC
Message-ID
<20080107200756.GA20892@efreet.light.src>
In-Reply-To
<20080107102327.GA12427@pvv.org>
On Mon, Jan 07, 2008 at 11:23:27 +0100, Finn Arne Gangstad wrote:
Show 10 quoted lines
> 3. each time you push a submodule, do a merge ours to a
>    "internal-submodule-tracking" branch, and push to that. Something
>    like this in other words:
> 
>      git fetch origin internal-submodule-tracking
>      git merge -s ours origin/internal-submodule-tracking
>      git push origin internal-submodule-tracking
>      git reset --hard HEAD^1
> 
>    Issue: feels wrong somehow?

Only one thing feels wrong here -- the merge -s ours. For one thing, the commit is probably descendant of what was in the internal-submodule-tracking branch (the branch name should actually have product2 in it's name). If it is not, you should not artificially make it so, but rewind the branch.

But as Junio already told you, you should really manage the subproject like a project (because it is a project), so the change should get to a topic branch where the other superprojects can look at the change and decide whether they want it or not.

-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous: Junio C HamanoNext: Finn Arne Gangstad
Message 7 of 8 in “RFC/RFH submodule handling in big setups”
  1. Finn Arne GangstadJan 7, 2008
  2. Junio C HamanoJan 7, 2008
  3. Nigel MagnayJan 7, 2008
  4. Finn Arne GangstadJan 7, 2008
  5. Finn Arne GangstadJan 7, 2008
  6. Junio C HamanoJan 7, 2008
  7. Jan HudecJan 7, 2008
  8. Finn Arne GangstadJan 7, 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.