From: Junio C Hamano <gitster@pobox.com>
To: "Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com>
Cc: "Thibaud CANALE" <thican@thican.net>, git@vger.kernel.org
Subject: Re: [RFC PATCH] switch: provide configurable detach
Date: Mon, 06 Apr 2026 17:50:11 -0700 [thread overview]
Message-ID: <xmqqh5pn8ugs.fsf@gitster.g> (raw)
In-Reply-To: <f0276575-9c75-45fb-8fcc-b465619d1b97@app.fastmail.com> (Kristoffer Haugsbakk's message of "Mon, 06 Apr 2026 19:48:49 +0200")
"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
> On the other hand, the BreakingChanges document does call
> git-checkout(1) “superseded”. And in that light I do understand why
> people want to actively avoid git-checkout(1), including implementing
> replacements for all relevant checkout-use cases in git-switch(1).
>
> Superseded features that will not be deprecated
>
> [...]
>
> • The features git-checkout(1) offers are covered by the pair of
> commands git-restore(1) and git-switch(1). Because the use of
> git-checkout(1) is still widespread, and it is not expected that
> this will change anytime soon, all three commands will stay.
Perhaps a good first step would be to stop calling checkout
"superseded". As they stand, all three are equally viable. In
other words, I would not exactly call "switch/restore" a failed
experiment, but it wasn't a clear success story, either.
I think "still" and "anytime soon" in the above paragraph are doing
disservice by implying that somehow we want to remove checkout but
we cannot yet, when the reality is that we wanted to be able to
replace checkout with switch/restore in the distant past, but that
was a misguided attempt and did not work very well.
It is not like switch/restore pair did not work well or anything,
and in that sense switch/restore themselves are by no means
failures, but it was a failed experiment to introduce these two as a
way to replace and kill checkout. For those users to whom both
"checking out files" and "checkout out a branch" appear as clear
concepts, there is no reason to abandon checkout.
prev parent reply other threads:[~2026-04-07 0:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-04 14:28 [RFC PATCH] switch: provide configurable detach Thibaud CANALE
2026-04-04 15:23 ` Pablo
2026-04-04 21:10 ` Thibaud CANALE
2026-04-04 16:58 ` D. Ben Knoble
2026-04-04 21:26 ` Thibaud CANALE
2026-04-04 21:14 ` [RFC PATCH v2] " Thibaud CANALE
2026-04-06 16:36 ` [RFC PATCH] " Junio C Hamano
2026-04-06 17:48 ` Kristoffer Haugsbakk
2026-04-07 0:50 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqh5pn8ugs.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=kristofferhaugsbakk@fastmail.com \
--cc=thican@thican.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox