RE: git switch/restore, still experimental?
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- May 4, 2021, 19:54 UTC
- Message-ID
- <6091a67824041_b32c320862@natae.notmuch>
- In-Reply-To
- <CAPiPmQnb=XMaF2+YkryEbiX8zA=jwa5y=fbAGk9jpCExpbS4Rw@mail.gmail.com>
Gábor Farkas wrote:
Show 7 quoted lines
> the "git switch" and "git restore" commands were released two years > ago, but the manpage still says "THIS COMMAND IS EXPERIMENTAL. THE > BEHAVIOR MAY CHANGE.". > > i'd love to use them, but this warning gives me pause, perhaps i > should wait until it stops being experimental, i worry that it might > change in behavior unexpectedly and cause problems for me.
It's precisely because the behavior may change that they are labeled as experimental.
I have 15 of experience using git, and I have tried to use them but to me they are too cumbersome.
For example I would expect this to work:
git restore @~ -- file
But it doesn't, I need to specify `-s @~`.
git checkout is more user-friendly to me, so purpose of git restore is defeated.
If the interface is changed, perhaps it will be useful to me. It isn't at the moment.
Cheers.
-- Felipe Contreras