From: Andreas Ericsson <ae@op5.se>
To: Andrew Arnott <andrewarnott@gmail.com>
Cc: Avery Pennarun <apenwarr@gmail.com>, git@vger.kernel.org
Subject: Re: How to merge branches except for one commit
Date: Thu, 29 May 2008 17:13:17 +0200 [thread overview]
Message-ID: <483EC80D.309@op5.se> (raw)
In-Reply-To: <216e54900805282001x299055c3r6cfffcebc61fa955@mail.gmail.com>
Andrew Arnott wrote:
> Interesting. I think working in the maintenance branch and merging
> back into master should work... except when I'm in master when I find
> the bug and just fix it there without thinking.
>
That's when you cherry-pick and reset. While having your maintenance
branch checked out (after having committed on master), do
git cherry-pick master
git checkout master
git reset --hard HEAD^
Later, when you merge in the maintenance branch again, you get the
bugfix you cherry-picked onto maint.
On the subject of your workflow though, I think you could definitely
benefit from using topic branches (short-lived branches with a few
commits to implement one particular feature/bugfix/whatever) so that
when you later decide to use a release-branch, you simply merge the
topics you want. For preference, bugfix topics should go into your
maintenance branch (branch v1.0 in your case), and then the entire
maintenance branch should be merged into master, so that master gets
all the true and tested bugfixes without you having to verify them
twice (assuming clean merges, ofcourse).
> The merge and revert idea is interesting. I may try that out in this
> case since I'm already stuck with lots of commits in master.
>
> Regarding why I am porting more than just *some* commits to the
> maintenance branches, well, these are also stabilization branches
> before an initial vX.0 release, so in the month or so of stabilization
> there could be potentially be a great deal of work in master that I
> decide is worth releasing sooner rather than later.
Why though? Don't you go into feature-freeze when you cut the branch?
If you don't, then where do you?
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
next prev parent reply other threads:[~2008-05-29 15:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-29 2:32 How to merge branches except for one commit Andrew Arnott
2008-05-29 2:42 ` Avery Pennarun
2008-05-29 3:01 ` Andrew Arnott
2008-05-29 15:13 ` Andreas Ericsson [this message]
2008-05-29 4:24 ` Junio C Hamano
2008-05-29 4:38 ` Imran M Yousuf
2008-05-29 5:42 ` Andrew Arnott
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=483EC80D.309@op5.se \
--to=ae@op5.se \
--cc=andrewarnott@gmail.com \
--cc=apenwarr@gmail.com \
--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).