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

Maintaining two branches.

From
David Brown <git@davidb.org>
Date
Jun 3, 2008, 16:34 UTC
Message-ID
<20080603163431.GA1244@old.davidb.org>
Looking for some advice/ideas on a git workflow:
We have three branches of the code:
   - upstream - The upstream release versions, tracks outside git repo.
   - external - Other external patches not included in the main git repo.
   - local - Our local development.

For release reasons, we need to keep our local branch separate, but normal development needs to be done on a merge of 'external' and 'local' (the tree needs the merge of both just to build). Developers will generate patches, and maintainers will apply these patches to 'local'.

I've tried creating a 'next' branch where I merge each change from local and/or external, and this seems to work, but the history gets very cluttered with merge commits. For some reason, history simplification doesn't seem to eliminate any of these merges.

We also have an automated build/test system that checks out versions of 'next', and when the build and test moves 'master' forward to that version. Because of this, it would be nice to keep 'next' fairly up-to-date, which implies having a lot of merges.

Does anyone have any better ideas on how to maintain this process? The 'next' and 'master' branches won't be exported too far, so could be replaced with simpler history occasionally, but there is a good number of developers who will be using them, so it would be best to not do this too often.

Thanks, David Brown

Next: Stephan Beyer
Message 1 of 7 in “Maintaining two branches.”
  1. David BrownJun 3, 2008
  2. Stephan BeyerJun 3, 2008
  3. David BrownJun 3, 2008
  4. Pieter de BieJun 3, 2008
  5. David BrownJun 3, 2008
  6. Dirk SüsserottJun 3, 2008
  7. Junio C HamanoJun 3, 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.