Jakub Narebski <jnareb@xxxxxxxxx> wrote: > Dnia wtorek 14. listopada 2006 18:36, Karl Hasselström napisa?: > > > > For example, we could skip the "bisect" branch, since > > you aren't supposed to commit to that anyway. > > Well, to have "branch" to which you could not commit, just put ref > outside refs/heads. > > Another solution would be to be able to put non-head ref in HEAD, > but allow to commit only if the prefix is refs/heads/ That's not a bad idea. Then you can checkout a tag and have 'ref: refs/tags/v1.11' in HEAD, which means anyone who puts $(git-symbolic-ref) calls into their PS1 will see "refs/tags/v1.11" as their current branch, reminding them they are looking at the past. Doing bisect branch in refs/bisect rather than refs/heads/bisect would then likewise remind the user that they are bisecting, and since neither matches refs/heads/* you cannot commit. -- Shawn. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html