Re: changing the experimental 'git switch' (was: [Summit topic] Improving Git UX)
- From
Bagas Sanjaya <bagasdotme@gmail.com>
- Date
- Oct 22, 2021, 03:33 UTC
- Message-ID
- <dc479498-428e-7cd4-cad5-da19875a9ad8@gmail.com>
- In-Reply-To
- <211021.86wnm6l1ip.gmgdl@evledraar.gmail.com>
On 21/10/21 23.45, Ævar Arnfjörð Bjarmason wrote:
Show 13 quoted lines
> In summary, I think it should be changed to act like this: > > |---------------------------+------------------------+---------------------------| > | What | Now | New | > |---------------------------+------------------------+---------------------------| > | Switch | git switch existing | git switch existing | > | Error | git switch nonexisting | <no change (errors)> | > | Switch with --merge | git switch -m branch | git switch --merge branch | > | Create | git switch -c new | git switch -n new | > | Create from existing | N/A | git switch -c new [<old>] | > | Move & switch to existing | N/A | git switch -m new [<old>] | > |---------------------------+------------------------+---------------------------| >
For switch with --merge case, it seems like adding long-option variant of -m (--merge), right?
-- An old man doll... just what I always wanted! - Clara