[Development] Managing branches of Qt's git modules

Marc Mutz marc.mutz at kdab.com
Fri Sep 30 12:57:43 CEST 2016


On Friday 30 September 2016 12:39:20 Sean Harmer wrote:
> Hi,
> 
> just a query as to how people do bulk checkouts of different branches
> when working with the Qt git modules. It would be nice to be able to use
> git submodule foreach ... but this is a problem because not all modules
> use the same branching scheme.
> 
> So, what do people do to checkout all interesting modules to 5.7, 5.8,
> dev etc on Unix like systems and on Windows?
> 
> On *nix systems I've been getting away with a simple bash for loop. But
> on windows I find this painful but maybe that's just my unfamiliarity
> with windows batch scripts.

to speed up fetching:

  git submdule foreach "git fetch --all &"

for everything else there's the repo tool, though I have not gotten around
to checking it out, since most of my work is in qtbase.

  git checkout <branch>
  git submodule update --rebase

doesn't do what you want?

Thanks,
Marc

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - Qt, C++ and OpenGL Experts



More information about the Development mailing list