RE: [PATCH] doc: use "git switch -c" rather than "git checkout -b" consistently
- From
rsbecker@nexbridge.com <rsbecker@nexbridge.com>
- Date
- Jan 9, 2023, 11:17 UTC
- Message-ID
- <018501d9241b$fe4b1270$fae13750$@nexbridge.com>
- In-Reply-To
- <xmqqbkn8wcqo.fsf@gitster.g>
On January 8, 2023 11:31 PM, Junio C Hamano wrote:
Show 7 quoted lines
>"Yutaro Ohno via GitGitGadget" <gitgitgadget@gmail.com> writes: > >> From: Yutaro Ohno <yutaro.ono.418@gmail.com> >> Subject: Re: [PATCH] doc: use "git switch -c" rather than "git >> checkout -b" consistently > >Hmph. When two things work equally well, is it a good idea to describe
only one
>"consistently", or mention both that can be used pretty much
interchangeably in
>different places? I am not 100% sure "consistently" is a good thing here. > >Thoughts from others?
git switch is still marked as EXPERIMENTAL in the online help. I don't think moving broadly to switch from checkout in the documentation should happen until the EXPERIMENTAL designation is dropped. After that, then "switch -c" should be used everywhere instead of checkout (except for in the checkout documentation).
--Randall