git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Brown <git@davidb.org>
To: git@vger.kernel.org
Subject: Maintaining two branches.
Date: Tue, 3 Jun 2008 09:34:31 -0700	[thread overview]
Message-ID: <20080603163431.GA1244@old.davidb.org> (raw)

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

             reply	other threads:[~2008-06-03 16:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-03 16:34 David Brown [this message]
2008-06-03 18:02 ` Maintaining two branches Stephan Beyer
2008-06-03 18:13   ` David Brown
2008-06-03 18:08 ` Pieter de Bie
2008-06-03 18:17   ` David Brown
2008-06-03 18:41     ` Dirk Süsserott
2008-06-03 19:09 ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080603163431.GA1244@old.davidb.org \
    --to=git@davidb.org \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).