Jay Soffian <jaysoffian@xxxxxxxxx> writes: > On Wed, Oct 5, 2011 at 5:55 PM, Junio C Hamano <gitster@xxxxxxxxx> wrote: >> I think the sequencer state needs to be removed when the command aborts. > > Or written later in do_pick_commit(). As a general direction, I think it makes tons of sense ot delay writing out these state files before you really commit that the user will be in the cherry-pick (or revert) sequence. I am not sure if do_pick_commit() is the best place to do so. Wouldn't it be necessary to special case the first round at least? The pick can fail in one of two ways: - It does not even start. This is the case I illustrated in the earlier message, and we do not want to leave sequencer state. - It stops with conflict. At this point, it probably is OK to say that the user is committed to go with the sequencer flow and the next step would be to help Git resolve conflicts and proceed, and in this case we do want the sequencer state. And once we picked/reverted at least one commit, if there are more, the user knows the sequencer flow is in progress, and it is perfectly fine to see the error message from "commit --amend". It's just the "commit --amend" message that says I cannot amend felt utterly out of place, immediately after seeing "cherry-pick" that tried to pick only one commit did _not_ even start. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html