{"thread":{"id":"17294","subject":"Superproject branch tracking?","startedAt":"2009-01-21T21:22:40Z","lastAt":"2009-01-21T23:25:03Z","messageCount":2,"participants":["Jon Loeliger","David Aguilar"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"101454","messageId":"49779220.5000900@freescale.com","threadId":"17294","inReplyTo":null,"subject":"Superproject branch tracking?","fromName":"Jon Loeliger","fromEmail":"jdl@freescale.com","sentAt":"2009-01-21T21:22:40Z","receivedAt":"2009-01-21T21:22:40Z","isPatch":false,"sender":{"key":"jdl@jdl.com","avatar":"https://gravatar.com/avatar/75ce9a10b151acd2c28ec4ab2136dba7b2ff1634530bd04b155981a749d08a64?d=mp&s=160"},"body":"Guys,\n\nCan someone tell me what the current best practice\nto have a Git supermodule maintain a branch that is\nactively tracking a similarly named branch in all of\nthe submodules?\n\nThat is, I want have a scenario where I would like\nthe master branch of a super-project to always (or on\ndemand) reflect the current HEAD of the master branch\nin each of the submodules.\n\nDoes anyone have a script up their sleeve that I can\nuse as a hook in the super to notice updates to a submodule\nand cause it to scurry around the sub-modules and create\na new (updated) commit in the super?\n\nThanks,\njdl\n"},{"id":"101477","messageId":"402731c90901211525i2db339a6t94a4478268dfcf1a@mail.gmail.com","threadId":"17294","inReplyTo":"49779220.5000900@freescale.com","subject":"Re: Superproject branch tracking?","fromName":"David Aguilar","fromEmail":"davvid@gmail.com","sentAt":"2009-01-21T23:25:03Z","receivedAt":"2009-01-21T23:25:03Z","isPatch":false,"sender":{"key":"davvid@gmail.com","avatar":"https://avatars.githubusercontent.com/u/13196?v=4"},"body":"On Wed, Jan 21, 2009 at 1:22 PM, Jon Loeliger <jdl@freescale.com> wrote:\n> Guys,\n>\n> Can someone tell me what the current best practice\n> to have a Git supermodule maintain a branch that is\n> actively tracking a similarly named branch in all of\n> the submodules?\n>\n> That is, I want have a scenario where I would like\n> the master branch of a super-project to always (or on\n> demand) reflect the current HEAD of the master branch\n> in each of the submodules.\n>\n> Does anyone have a script up their sleeve that I can\n> use as a hook in the super to notice updates to a submodule\n> and cause it to scurry around the sub-modules and create\n> a new (updated) commit in the super?\n>\n> Thanks,\n> jdl\n>\n\nHello\n\nHave you seen Shawn's repo tool?\n\n    http://kerneltrap.org/mailarchive/git/2008/10/22/3763214\n\nIt might not do *exactly* what you're looking for, but it is magical.\n\nThere's also a repo-discuss google group where repo-specific questions\ncan be addressed.\n\n\n-- \n    David\n"}]}