hoi :) On Wed, Apr 11, 2007 at 02:15:36AM -0700, Junio C Hamano wrote:that's perfectly fine. I only require one more thing: make sure that your commit is on one dedicated branch (simply by merging your working/rebased/whatever branch into the dedicated one) and not on some random one. Again: for your above example this is not neccessary and using HEAD would indeed be perfectly fine. But you also have to update the submodule when you do a checkout in the supermodule. So what do you update? Updating 'HEAD' is not very concrete, please have a look at my initial mail to Linus. What is stored in the supermodule? It stores a reference to a specific point in the history of the submodule. As such I am convinced that the right counterpart inside the submodule is a refs/heads/whatever, and not the branch selector HEAD. You can have other branches next to the one which is tracked by the supermodule. If you always update HEAD you don't have a clear distinction between the branch which is tracked and other branches. If the supermodule just updates some random submodule branch I happen to use at the time of a supermodule pull then submodule branches are of much lower value. Suddenly you have to make sure for yourself that the correct branch gets updated. For me, different branches should be independent and I want git to always update the correct one. --=20 Martin Waitz
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
| Andrew Morton | -mm merge plans for 2.6.23 |
| KAMEZAWA Hiroyuki | Re: 2.6.23-mm1 |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
git: | |
| Alan Cox | Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
