From 1bb4fb222d831ed384d6fdef7402d36c19e91b2e Mon Sep 17 00:00:00 2001 From: Raman Tenneti Date: Thu, 7 Jan 2021 16:50:45 -0800 Subject: manifest_xml: initial support for At most one superproject may be specified. It will be used to specify the URL of superproject. It would have 3 attributes: remote, name, and default. Only "name" is required while the others have reasonable defaults. TODO: This CL only implements the parsing logic and further work will be in followup CLs. Tested the code with the following commands. $ ./run_tests tests/test_manifest_xml.py $ ./run_tests -v Bug: https://crbug.com/gerrit/13709 Tested-by: Raman Tenneti Change-Id: I5b4bba02c8b59601c754cf6b5e4d07a1e16ce167 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/292982 Reviewed-by: Mike Frysinger --- docs/manifest-format.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'docs/manifest-format.md') diff --git a/docs/manifest-format.md b/docs/manifest-format.md index ca385ba3..8e5e2874 100644 --- a/docs/manifest-format.md +++ b/docs/manifest-format.md @@ -29,6 +29,7 @@ following DTD: project*, extend-project*, repo-hooks?, + superproject?, include*)> @@ -98,6 +99,10 @@ following DTD: + + + + @@ -377,6 +382,28 @@ defined `project` element. Attribute `enabled-list`: List of hooks to use, whitespace or comma separated. +### Element superproject + +*** + *Note*: This is currently a WIP. +*** + +NB: See the [git superprojects documentation]( +https://en.wikibooks.org/wiki/Git/Submodules_and_Superprojects) for background +information. + +This element is used to specify the URL of the superproject. It has "name" and +"remote" as atrributes. Only "name" is required while the others have +reasonable defaults. At most one superproject may be specified. +Attempting to redefine it will fail to parse. + +Attribute `name`: A unique name for the superproject. This attribute has the +same meaning as project's name attribute. See the +[element project](#element-project) for more information. + +Attribute `remote`: Name of a previously defined remote element. +If not supplied the remote given by the default element is used. + ### Element include This element provides the capability of including another manifest -- cgit v1.2.3-54-g00ecf