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

Re: Submodules with feature branches

From
W. Trevor King <wking@tremily.us>
Date
Jun 5, 2014, 19:18 UTC
Message-ID
<20140605191829.GA32192@odin.tremily.us>
In-Reply-To
<20140605190033.GV21803@odin.tremily.us>
On Thu, Jun 05, 2014 at 12:00:33PM -0700, W. Trevor King wrote:
Show 10 quoted lines
> On Thu, Jun 05, 2014 at 01:31:39PM -0500, Robert Dailey wrote:
> > Instead of just creating my branch and starting to make commits, I
> > now have to setup my submodule branch first. Also pull requests
> > won't show the changes to the third party libraries unless I do a
> > second pull request for the third party repo.
> 
> That I agree with ;).  However, if you're treating the third-party
> library as a separate repo, I think it makes sense that you need to
> be making branches and pull requests in the submodule independently
> from your branches and pull requests in the superproject.

To make this more concrete, I think you'll rarely have tight one-to-one binding between third-party library changes and your superproject. More likely, you'll have some high-level feature branch in the superproject (“accept comments via email”) and an unrelated number of prerequisite feature branches for your libraries (“add support for MIME documents,” “parse RFC 2822 dates,” …). You only have synchronized branches when you mess with the API tying components together (updating the submodule API and updating the superproject to use it). With good library design, that type of API migration should happen more and more rarely as the library stabilizes.

Cheers, Trevor

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
Previous: W. Trevor King
Message 7 of 7 in “Submodules with feature branches”
  1. Robert DaileyJun 5, 2014
  2. W. Trevor KingJun 5, 2014
  3. Robert DaileyJun 5, 2014
  4. W. Trevor KingJun 5, 2014
  5. Robert DaileyJun 5, 2014
  6. W. Trevor KingJun 5, 2014
  7. W. Trevor KingJun 5, 2014

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.