On Thu, Oct 06, 2022 at 02:02:53PM +0100, Peter Maydell wrote: > On Thu, 6 Oct 2022 at 13:36, Michael S. Tsirkin <m...@redhat.com> wrote: > > > > The most commmon complaint about submodules is that > > they don't follow when one switches branches in the > > main repo. Enable recursing into submodules by default > > to address that. > > Just to check, because the git docs are a bit unclear to me, > does this retain the existing behaviour that if a submodule > isn't checked out at all then it remains not-checked-out ? > (That is, we don't want to force developers to have checked > out submodule sources for all the edk2 and other rom blob > sources which aren't needed for day-to-day QEMU development.) > > thanks > -- PMM
I think so - by default submodules are considered inactive, git only recurses into active modules. I just tried the following: >git clone qemu qemu-tst >cd qemu-tst >ls -l $(grep submodule .gitmodules |sed -e 's/[^"]*"//' -e 's/".//') dtc: total 0 meson: total 0 roms/edk2: total 0 roms/ipxe: total 0 roms/openbios: total 0 roms/opensbi: total 0 roms/qboot: total 0 roms/QemuMacDrivers: total 0 roms/qemu-palcode: total 0 roms/seabios: total 0 roms/seabios-hppa: total 0 roms/sgabios: total 0 roms/skiboot: total 0 roms/SLOF: total 0 roms/u-boot: total 0 roms/u-boot-sam460ex: total 0 roms/vbootrom: total 0 slirp: total 0 subprojects/libvfio-user: total 0 tests/fp/berkeley-softfloat-3: total 0 tests/fp/berkeley-testfloat-3: total 0 tests/lcitool/libvirt-ci: total 0 ui/keycodemapdb: total 0 HTH -- MST