From: Duy Nguyen Date: Fri, 26 Jan 2018 09:24:58 GMT Subject: Re: Bug, git rebase -i does not abort correctly Message-ID: In-Reply-To: <1516953056.8886.3.camel@gmail.com> On Fri, Jan 26, 2018 at 2:50 PM, Kaartic Sivaraam wrote: > 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 is specified, git rebase will perform an automatic "git > checkout " before doing anything else. Otherwise it remains > on > the current branch. > > Junio has previously confirmed that "git rebase [-i] > " is just a short hand for "git checkout && git rebase > [-i] ".[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