From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: "Björn Steinbrink" <B.Steinbrink@gmx.de>
Cc: gitster@pobox.com, git@vger.kernel.org
Subject: Re: rebase --onto might "loose" commits
Date: Tue, 19 Feb 2008 11:05:40 +0000 (GMT) [thread overview]
Message-ID: <alpine.LSU.1.00.0802191102440.30505@racer.site> (raw)
In-Reply-To: <20080219072359.GA752@atjola.homenet>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1034 bytes --]
Hi,
On Tue, 19 Feb 2008, Björn Steinbrink wrote:
> when there's nothing to rebase (ie. upstream..branch is empty), rebase
> fails to find any commits to rebase and correctly says "Nothing to do",
> but when --onto is given, we already did a "reset --hard" to newbase, so
> it already _did_ something.
Yes, it did something. But if you had that:
A - B - C - D - E
\
F
your HEAD was E, and you said "git rebase --onto F E" what exactly do you
want it to do? There is no commit between E and E, so it rebases
_nothing_ onto F. Which means that F should be your new state.
Unless I am missing something critical in your mail.
> As rebase also shows a "fatal: Not a range", during the operation, I
> assume that this is an actual bug and not just a plain user error.
That message is probably a bug, then.
Ciao,
Dscho
P.S.: I was being corrected some time ago on the same typo: "to lose"
means to get rid of something unintentionally, "to loose" does not exist,
and "to loosen" means to make something less tight.
next prev parent reply other threads:[~2008-02-19 11:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-19 7:23 rebase --onto might "loose" commits Björn Steinbrink
2008-02-19 11:05 ` Johannes Schindelin [this message]
2008-02-19 12:52 ` Björn Steinbrink
2008-02-19 14:43 ` Nicolas Pitre
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=alpine.LSU.1.00.0802191102440.30505@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=B.Steinbrink@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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