Agreed. Possibly, we could have commit (or commit-tree) issue a big fat
warning along the lines of:
*** WARNING ***
You are about to create a commit on a detached HEAD.
It is recommended that you run "git branch <name>" to create a branch to
commit to first. If you don't, you might lose this commit further on.
*** WARNING ***
which could be suppressed by a "--silently-ignore-detached-head" in case
scripts (securely) use this behaviour. Since committing on detached
heads really should be a very rare case I don't think many people will
find this terribly annoying.
Indeed and as I've said before, *all* developers have "silly-names" they
use for temporary stuff (foo, bar, frotz, nitfol, blaj, fnurg, sdf, ...)
so it's not like we'll put a heavy burden on peoples imagination.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
-
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