cherry-pick --no-commit does not work well with --continue in case of conflicts
- From
Ilya Kantor <iliakan@gmail.com>
- Date
- May 5, 2018, 20:26 UTC
- Message-ID
- <CAFU8umjvEATZguGDmcRMcfAkqn4LW7vf_B9qpLD7uc-E_7qR9g@mail.gmail.com>
Somewhy cherry-pick --no-commit does not work well with --continue.
Let's say I'm copying changes w/o committing and get a conflict:
> git cherry-pick -n master..feature
error: could not apply 2c11f12... Run work
Then I fix the conflict, but cherry-pick refuses to go on:
> git add . > git cherry-pick --continue
error: your local changes would be overwritten by cherry-pick. fatal: cherry-pick failed
It could continue *if* I committed, but I'm --no-commit for a reason, so I shouldn't have to commit to go on with cherry-pick.
Maybe there's a preliminary check that prevents --continue and should be fixed?
--- Best Regards, Ilya Kantor