From: Junio C Hamano <gitster@pobox.com>
To: Dave Olszewski <cxreg@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] rebase--interactive: don't enforce valid branch
Date: Mon, 15 Mar 2010 10:14:28 -0700 [thread overview]
Message-ID: <7vbpepse17.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: alpine.DEB.2.00.1003150132060.4362@narbuckle.genericorp.net
Dave Olszewski <cxreg@pobox.com> writes:
>> Also I did't follow the code, but does it behave sanely when you say
>> "rebase --abort"?
>
> Good question. It turns out that both rebase and rebase -i will end
> up on the commit specified by <branch>, whether it's a branch or not.
> That might be the expected and desired behavior, though:
>
> [Starting on branch A]
> git rebase origin/B B
> git rebase --abort
> [HEAD is now a symref to B]
>
> [Starting on branch A]
> git rebase origin/B B^0
> git rebase --abort
> [HEAD is now detached at B^0]
Yup, that is what I would call "behave sanely". Thanks for clarification.
prev parent reply other threads:[~2010-03-15 17:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-15 4:48 [PATCH] rebase--interactive: don't enforce valid branch Dave Olszewski
2010-03-15 5:20 ` Junio C Hamano
2010-03-15 5:28 ` Dave Olszewski
2010-03-15 5:42 ` Junio C Hamano
2010-03-15 5:46 ` Dave Olszewski
2010-03-15 6:14 ` Junio C Hamano
2010-03-15 8:41 ` Dave Olszewski
2010-03-15 17:14 ` Junio C Hamano [this message]
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=7vbpepse17.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=cxreg@pobox.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).