From: "J. Bruce Fields" <bfields@fieldses.org>
To: Git Mailing List <git@vger.kernel.org>
Subject: Re: rebasing trouble
Date: Thu, 29 Jun 2006 17:57:25 -0400 [thread overview]
Message-ID: <20060629215725.GI14287@fieldses.org> (raw)
In-Reply-To: <20060629194723.GD14287@fieldses.org>
On Thu, Jun 29, 2006 at 03:47:23PM -0400, J. Bruce Fields wrote:
> I must be missing something obvious:
>
> bfields@puzzle:linux-2.6$ git checkout -b TMP nfs-client-stable^^^
> bfields@puzzle:linux-2.6$ git-describe
> v2.6.17-rc6-g28df955
> bfields@puzzle:linux-2.6$ git-rebase --onto v2.6.17 origin
> Nothing to do.
> bfields@puzzle:linux-2.6$ git-describe
> v2.6.17
>
> So the git-rebase just reset TMP to v2.6.17. But I know that nfs-client-stable
> isn't a subset of origin, so this doesn't make sense to me.
Oops, sorry, I lied; nfs-client-stable *is* a subset of origin, since Linus
merged it.
But it *isn't* a subset of v2.6.17.
So the semantics of git-rebase just aren't quite what I expected. It first
removes anything that isn't in the given upstream branch, *then* rebases to the
commit given after --onto. Which may mean it throws out some stuff that is in
the upstream branch even though it isn't yet included as of the given commit.
So what I really meant to do was just
git-rebase v2.6.17
And rereading the man page, I see that git-rebase was working exactly as
advertised. So I'm an idiot. In my defense, it is a little confusing: none of
the examples in the man page that use --onto actually need it, and the
"upstream" argument probably should be described as a commit or something
instead of a branch.
(What is --onto actually useful for?)
--b.
next prev parent reply other threads:[~2006-06-29 21:58 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 [this message]
2006-06-29 22:34 ` Junio C Hamano
2006-06-29 23:45 ` J. Bruce Fields
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=20060629215725.GI14287@fieldses.org \
--to=bfields@fieldses.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.