Re: Bug, git rebase -i does not abort correctly
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jan 26, 2018, 09:24 UTC
- Message-ID
- <CACsJy8DjXBv_HMbRFPjCLuYt-bk=Ec3VPKorXJ_SBJN8pDu=PQ@mail.gmail.com>
- In-Reply-To
- <1516953056.8886.3.camel@gmail.com>
On Fri, Jan 26, 2018 at 2:50 PM, Kaartic Sivaraam <kaartic.sivaraam@gmail.com> wrote:
Show 18 quoted lines
> This might seem to be a bug as the comment in "git-rebase-todo" says, > > However, if you remove everything, the rebase will be aborted. > > But "man git rebase" clearly says, > > If <branch> is specified, git rebase will perform an automatic "git > checkout <branch>" before doing anything else. Otherwise it remains > on > the current branch. > > Junio has previously confirmed that "git rebase [-i] <upstream> > <branch>" is just a short hand for "git checkout <branch> && git rebase > [-i] <upstream>".[ref 1] So, it's not surprising that it left HEAD at > @~3 when you completely removed the contents of git-rebase-todo and > exited the editor. > > Does that help solve your issue?
Sort of. It smells bad design to me when a mistake can easily become a feature. But with your help, I think I should be able to disable this feature on my local build. Thanks.
-- Duy