git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Why are experimental commands git restore and git switch suggested in CLI output?
@ 2020-05-02  7:18 Erik Huizinga
  2020-05-02 16:44 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Erik Huizinga @ 2020-05-02  7:18 UTC (permalink / raw)
  To: git

Hello!

Lately I've noticed that when I checkout a branch or show the working
tree status, then the CLI output suggests that I can perform certain
actions with new commands (since v2.23 if I'm not mistaken) restore
and switch. This is very nice, because I like to see these UI
enhancements. However, reading the help pages for these commands shows
'THIS COMMAND IS EXPERIMENTAL. THE BEHAVIOR MAY CHANGE.' This is
somewhat discouraging use, because I don't want to learn to use these
commands if their behavior may change. This could mean that what I
learn about these command may not be usable on future git versions.

My questions about this are:

1. What is the git maintainers' policy regarding experimental features
like restore and switch? Apparently, they are there to be discovered
in plain sight, while experimental. Using experimental features may
not be what the user wants.
2. What exactly may change about these commands' behavior? Are the
superficially suggested actions stable? Are they stable within a patch
or minor git version only? Are existing use cases stable, or can they
be removed or incompatibly change under this experimental policy?

In other words: how can I, an individual end user, know what I can
safely learn about these commands, and what can not?

Thank you in advance for your time and answers. :)
Erik Huizinga

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-02 16:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-02  7:18 Why are experimental commands git restore and git switch suggested in CLI output? Erik Huizinga
2020-05-02 16:44 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).