From: "J. Bruce Fields" <bfields@fieldses.org>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: rebasing trouble
Date: Thu, 29 Jun 2006 19:45:02 -0400 [thread overview]
Message-ID: <20060629234502.GB10041@fieldses.org> (raw)
In-Reply-To: <7vlkrfoaky.fsf@assigned-by-dhcp.cox.net>
On Thu, Jun 29, 2006 at 03:34:21PM -0700, Junio C Hamano wrote:
> For example, I maintain two public branches "master" and
> "next", the former is supposed to be quite stable and the latter
> to contain sane proposed updates that need to be proven before
> graduating to "master".
>
> Sometimes I get patches that I have to apply on top of "next"
> because of textual dependency, but the changes are worthwhile to
> have it in "master" earlier than the changes the other series
> depends on.
>
> o---o---o---o---o master
> \
> o---o---o---o---o next
> \
> o---o---o good
>
> $ git checkout good
> $ git rebase --onto master next
>
> o---o---o---o---o master
> | \
> | o---o---o good
> \
> o---o---o---o---o next
>
OK, so you're saying "take everything in good but not in next, and try to apply
it to master."
I don't know why I find that syntax so counterintuitive. Something like
git checkout -b newgood master
git cherry-pick next..good
would seem more obvious. But I think this has been discussed before. OK,
thanks for the explanation.
--b.
next prev parent reply other threads:[~2006-06-29 23:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-29 19:47 rebasing trouble J. Bruce Fields
2006-06-29 20:04 ` Junio C Hamano
2006-06-29 20:22 ` J. Bruce Fields
2006-06-29 20:38 ` J. Bruce Fields
2006-06-29 21:57 ` J. Bruce Fields
2006-06-29 22:34 ` Junio C Hamano
2006-06-29 23:45 ` J. Bruce Fields [this message]
2006-06-30 1:12 ` 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=20060629234502.GB10041@fieldses.org \
--to=bfields@fieldses.org \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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).