From ff6b1dae1e9f2e7405690c1aeedf7e0c7d768460 Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Wed, 1 Jun 2022 21:03:34 +0000 Subject: Only sync superproject if it will be used. If the user says `--no-use-superproject`, then do not bother syncing the superproject. Also add/update docstrings and comments throughout. Change-Id: I9cdad706130501bab9a22d3099a1dae605e9c194 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/338975 Tested-by: LaMont Jones Reviewed-by: Mike Frysinger --- command.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'command.py') diff --git a/command.py b/command.py index bd6d0817..7c68ebc5 100644 --- a/command.py +++ b/command.py @@ -277,6 +277,18 @@ class Command(object): def GetProjects(self, args, manifest=None, groups='', missing_ok=False, submodules_ok=False, all_manifests=False): """A list of projects that match the arguments. + + Args: + args: a list of (case-insensitive) strings, projects to search for. + manifest: an XmlManifest, the manifest to use, or None for default. + groups: a string, the manifest groups in use. + missing_ok: a boolean, whether to allow missing projects. + submodules_ok: a boolean, whether to allow submodules. + all_manifests: a boolean, if True then all manifests and submanifests are + used. If False, then only the local (sub)manifest is used. + + Returns: + A list of matching Project instances. """ if all_manifests: if not manifest: -- cgit v1.2.3-54-g00ecf