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

Re: Maintaining two branches.

From
PBPieter de Bie <pdebie@ai.rug.nl>
Date
Jun 3, 2008, 18:08 UTC
Message-ID
<08056802-BBBC-4F1D-A1A6-2F8C381CDA2B@ai.rug.nl>
In-Reply-To
<20080603163431.GA1244@old.davidb.org>
On 3 jun 2008, at 18:34, David Brown wrote:
Show 14 quoted lines
> 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'.
You might do the same workflow that Git has with stable / master / next

If there is a new upstream release, merge it into external. If you have patches you want to show to the outside, apply those patches to external. Then you can merge external into local. The trick is to never merge local into external.

By going only one way (upstream --> external --> local), you'll never have to worry about having to separate the different patches. Your history will be displayed much nicer too.

- Pieter
Previous: David BrownNext: David Brown
Message 4 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.