Re: [PATCH] Detached HEAD (experimental)
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:47
Carl Worth [off-list ref] writes:
I don't actually prefer "no commit allowed". I just didn't want the user to have to explicitly disable the safety before being able to perform a checkout based on a tag.
Ok, then I think we are in agreement that the safety should be at the point where the user might leave the detached state.
I am still interested in this feature, so I will try to find time to come back with a revised version of your patch with the missing safety check (and without requiring -d on checkout). Thanks again for this initial take on the problem. (Though if anyone else beats me to it, I certainly will not be offended.)
Sounds good. I do not mind losing -d, but I would suggest that there should be a message that says "you are no longer on any branch" after a checkout that makes the head detached. The user should be warned about such an unusal situation.