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

Re: git refuses to switch to older branches

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

Jakub Narebski [off-list ref] writes:
... I'm not sure if this is feature or bug that git-checkout
with file specified (path limit specified?) doesn't need -f
This is definitely a feature we deliberately added long after
git-checkout was initially written, in reponse to specific
requests from users.  Back then the only way to revert to index
or HEAD was to "checkout-index -f -q -u -a" or "reset --hard"
and it was cumbersome to revert only a single path.

I have been wondering if we wanted to be able to say:

	git checkout HEAD gitweb/

to revert everything under named hierarchy, but we haven't heard
user requests for this.  This is way more dangerous than my
liking so personally I am happy that we do not have it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help