Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] Introduce "reset type" flag to "git reset"

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:04

Junio C Hamano [off-list ref] writes:
Sam Ravnborg [off-list ref] writes:
quoted
But --soft, --hard looks rather confusing to me.

Something like --force or --prune may be a bit more intuitive, and let
default behaviour be the one you name --soft for now.
I do not have objections to removing --mixed, but I do not find
--force/--prune any less confusing than --soft/--hard.  Its just
a terminology so once people get used to it anything would do.
But I agree that we need to come up with a good name for them.
I do not think --force/--prune is it, though.
Names aside, I have a feeling that "git reset --hard HEAD" is
what "git checkout -f HEAD" should have done.  As it stands, the
latter leaves files not in HEAD but in the previous tree behind.

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