Thread (6 messages) flat view 6 messages, 4 authors, 2019-08-28

Re: Support for an interactive confirmation prompt when users can possibly lose their work like some UNIX commands

From: Jeff King <hidden>
Date: 2019-08-28 15:05:33

On Tue, Aug 27, 2019 at 10:42:03PM +0000, Vipul wrote:
Jeff King wrote:
quoted
The usual philosophy in Git is not to bother the user with
confirmations, but to allow recovery after a mistake.
Well, always prompting for confirmation will be annoying for some people
specially who are mastered in git but, may be very useful feature for
beginner's to avoid them from making mistakes. May be, this feature will
be disabled by default and users have to set some config variable (like
other git-config variable for example help.autocorrect etc) in global
gitconfig file.
Sure, I think there's an argument to be made for confirmations (though I
personally would not want them). I was just describing what Git has now.
quoted
Note that there _are_ some commands which are not reversible: mostly
things that drop content from the working tree. So "git reset --hard" is
one, and "git clean" is another. There have been discussions and even
some patches about storing the lost in an "undo log", but nothing has
been merged.
Seems like a good idea. Are they ever gonna merge? If no, why? Or, it
will merge in next feature release.
I don't know the latest state. A quick search of the archive showed this
as the latest version:

  https://public-inbox.org/git/20181209104419.12639-1-pclouds@gmail.com/

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help