summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorFredrik de Groot <fredrik.de.groot@volvocars.com>2020-10-06 12:55:14 +0200
committerMike Frysinger <vapier@google.com>2020-11-26 09:13:14 +0000
commit352c93b68084e97ec7a3c09f0bd3f2a161290211 (patch)
treecf2e19805c6046a12aa221dd6c9747da570994a9 /docs
parent7f7acfe9fd93cfd4a697f2bc851d1b8182f6336e (diff)
downloadgit-repo-352c93b68084e97ec7a3c09f0bd3f2a161290211.tar.gz
manifest: add support for groups in includev2.10
Attrib groups can now be added to manifest include, thus all projects in an included manifest file can easily be tagged with a group without modifying all projects in that manifest file. Include groups will add and recurse, meaning included manifest projects will carry all parent includes. Intentionally, no support added for group remove, to keep complexity down. Group handling for projects is untouched, meaning a group set on a project will still append to whatever was or was not inherited in parent manifest includes, resulting in union of groups inherited and set for the project itself. Test: manual multi-level manifest include structure, in serial and parallel, with different groups set on init Test: added unit tests to cover the inheritance Change-Id: Id2229aa6fd78d355ba598cc15c701b2ee71e5c6f Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/283587 Tested-by: Fredrik de Groot <fredrik.de.groot@volvocars.com> Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/manifest-format.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/manifest-format.md b/docs/manifest-format.md
index b35a065f..2af34ac2 100644
--- a/docs/manifest-format.md
+++ b/docs/manifest-format.md
@@ -99,7 +99,8 @@ following DTD:
99 <!ATTLIST repo-hooks enabled-list CDATA #REQUIRED> 99 <!ATTLIST repo-hooks enabled-list CDATA #REQUIRED>
100 100
101 <!ELEMENT include EMPTY> 101 <!ELEMENT include EMPTY>
102 <!ATTLIST include name CDATA #REQUIRED> 102 <!ATTLIST include name CDATA #REQUIRED>
103 <!ATTLIST include groups CDATA #IMPLIED>
103]> 104]>
104``` 105```
105 106
@@ -368,6 +369,10 @@ target manifest to include - it must be a usable manifest on its own.
368Attribute `name`: the manifest to include, specified relative to 369Attribute `name`: the manifest to include, specified relative to
369the manifest repository's root. 370the manifest repository's root.
370 371
372Attribute `groups`: List of additional groups to which all projects
373in the included manifest belong. This appends and recurses, meaning
374all projects in sub-manifests carry all parent include groups.
375Same syntax as the corresponding element of `project`.
371 376
372## Local Manifests 377## Local Manifests
373 378