You are right; it would get quite confusing.
But perhaps the current error message
git checkout: you need to specify a new branch name
should be a little bit more explaining by appending
"... to switch to for being able to checkout the requested revision"
Me too. Specifying a branch name is easy enough.
Yes. The idea to make the ref readonly to specify this intent was
a quick (not so good) idea.
Still, being able to specify that you can not commit on some branch
(as you said) is very useful to prohibit doing things by accident.
.git/config does not sound very good for such a thing, especially
if there could be other branch-specific properties in the future.
Josef
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html