Re: [PATCH v3 10/21] checkout: split part of it to new command 'switch'
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Mar 29, 2019, 11:27 UTC
- Message-ID
- <CACsJy8AVGoNvU9yC=y5BvNWQaMachD-nU-OVXuFVAw62_+mxKg@mail.gmail.com>
- In-Reply-To
- <42ba7f39-4a8e-9866-eebd-2a4dd5ff8414@gmail.com>
On Fri, Mar 29, 2019 at 6:04 PM Phillip Wood <phillip.wood123@gmail.com> wrote:
Show 9 quoted lines
> > I am especially concerned with the idea of > > having something like "git switch --ignore-in-progress > > --discard-changes" being used to quit merges or cherry-picks or > > reverts or even rebases. In my opinion, doing so is creating flags to > combine uncommon pairs of git commands (git <operation> --quit + git > > switch) in a way that is far less clear. I think that's a bad route > > to go down, and we should keep the commands orthogonal > > keeping commands orthogonal is certainly clearer, if less convenient - > lets do it (assuming Duy agrees).
I sent out v6 a bit too early I guess. But removing --ignore-in-progress also makes it orthogonal. You could cancel the in-progress operation and resume switching, or find another way and forget about switching.
-- Duy