On Thu, 12 Apr 2007, Martin Waitz wrote:I don't think "everybody" wants it. But the point is, *regardless* of whether you want a "detached HEAD" or you want a "'special' branch", you should always use HEAD to look up the commit, and using HEAD *allows* both (ie just make HEAD a symref to the 'special' branch if you want that behaviour). And if you *do* use a special branch, HEAD *must* match that special branch anyway, since when you commit in the supermodule, the only behaviour that makes sense is to commit the currently checked out state! And that is entirely appropriate. But that still means that HEAD must point to that branch (when in the submodule), since that branch must be the one that is checked out. If it isn't the branch that is checked out, normal operations like "git diff" etc wouldn't make sense from the supermodule. And that is why *regardless* of whether you use a special branch or not, HEAD is the right thing to look up. Linus - 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
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Rafael J. Wysocki | Re: Linux 2.6.27-rc5: System boot regression caused by commit a2bd7274b47124d2fc4d... |
git: | |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
