On 2006-11-14 15:53:18 +0100, Jakub Narebski wrote: > linux@xxxxxxxxxxx wrote: > > > Then you could check out an arbitrary version without any of the > > annoyance above; I could "git checkout tags/foo" or even "git > > checkout deadbeef~3". I wouldn't be on a current branch (which > > would necessitate changing "git branch" output), so HEAD would > > simply contain an object ID directly rather than being a > > symlink/symref. > > And what would happen if you want to checkout other branch? Where > the ID in the HEAD would go to? HEAD just _has_ to be reference to > _branch_. The id that used to be HEAD would not be saved anywhere. It would still be reachable from your refs, presumably, just like before you checked it out. (It would not be the case that you had made commits on an unnamed branch that would now get lost, because the tool would refuse to commit until you had created a name for the branch.) -- Karl Hasselström, kha@xxxxxxxxxxx www.treskal.com/kalle - 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