Thread (6 messages) flat view 6 messages, 3 authors, 2016-08-14

Re: why is git destructive by default? (i suggest it not be!)

From: Jing Xue <hidden>
Date: 2016-06-15 22:44:49


Quoting David Jeske [off-list ref]:
- add "checkout" to the git-gui history right-click menu, and make the
danger of
"reset --hard" more obvious and require a confirmation dialog (the gui
equivilant of -f)
Is that really necessary?  The way it works now, when I choose "reset  
foo branch to here", a dialog prompts me to pick from the three reset  
modes, with 'Mixed' being the default. So I'd have to explicitly pick  
'Hard', which has a message "discards ALL local changes" right next to  
it.  If people are so conditioned to ignore that, I doubt it'll take  
very long for them to be conditioned to just automatically confirm the  
confirmation dialog.

The same applies to the command line as well I guess - if having to  
manually type "--hard" does not make one stop and think about what  
they are doing, I can hardly see how "--hard --force" would do any  
better.

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