Re: [PATCH 15/18] reset: Make reset remove the sequencer state
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jul 28, 2011, 15:59 UTC
- Message-ID
- <20110728155929.GD22950@elie.dc0b.debconf.org>
- In-Reply-To
- <CALkWK0=eh2MRqc1tW3rcPYAF3YLQnXanTZd9kzGdWBpJVcB01w@mail.gmail.com>
Ramkumar Ramachandra wrote:
> I'm curious: doesn't this also apply to "rebase -i" and other scripts > that attempt to remove the branch state through "reset"?
It starts by detaching HEAD. So, just like after a conflicted "git merge", I think typically it will write
error: you need to resolve your current index first
But that doesn't help when there are no unmerged index entries; good catch.
Maybe merge_working_tree() should ask the sequencer API whether there is something untoward in progress so "git checkout" without "-f" can know to bail out.