mirror of
https://gerrit.googlesource.com/git-repo
synced 2026-07-27 22:38:05 +00:00
Allow callers to request a specific type of manifest
If the caller knows exactly what the manifest type must be we can now ask the loader to directly construct that type, rather than guessing it from the working directory. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
+4
-2
@@ -62,8 +62,10 @@ class Command(object):
|
||||
def manifest(self):
|
||||
return self.GetManifest()
|
||||
|
||||
def GetManifest(self, reparse=False):
|
||||
return manifest_loader.GetManifest(self.repodir, reparse)
|
||||
def GetManifest(self, reparse=False, type=None):
|
||||
return manifest_loader.GetManifest(self.repodir,
|
||||
reparse=reparse,
|
||||
type=type)
|
||||
|
||||
def GetProjects(self, args, missing_ok=False):
|
||||
"""A list of projects that match the arguments.
|
||||
|
||||
Reference in New Issue
Block a user