git-submodule: allow partial update of .git-submodule-status
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 May 2023 15:10:29 +0000 (17:10 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 Jun 2023 14:30:01 +0000 (16:30 +0200)
commitfdb8fd8cb915647be7f7f2e2f0c530ed06ca9b01
treeb122b61687048658b62e5a9c2cd6661ebc6d8ccb
parentac4ccac740a824539a92ef397bb5efa58bd8cbe5
git-submodule: allow partial update of .git-submodule-status

Allow a specific subdirectory to run git-submodule.sh with only a
subset of submodules, without removing the others from the
.git-submodule-status file.

This also allows scripts/git-submodule.sh to be more lenient:
validating an empty set of submodules is not a mistake.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/git-submodule.sh