An obvious alternative is not to allow building on top of a HEAD
that is detached at all, which I suggested initially.
A non-alternative is to silently lose commits, which you seem to
be suggesting, but I would rather play it safe.
The wording used for current warning that says "use checkout -f"
is horrible, and it needs to be reworded much better, but other
than that, I think playing safer is much better than making a
worse trap of silently losing the commits they may make before
they come to understand how "a branch" works.
-
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