diff options
| author | Peter Kjellerstedt <pkj@axis.com> | 2025-10-16 20:29:28 +0200 |
|---|---|---|
| committer | Gavin Mak <gavinmak@google.com> | 2025-10-27 11:38:07 -0700 |
| commit | 4ab2284a945d82b017c6646fca57c5973ffdabaf (patch) | |
| tree | b70f27fe505573b038c62c7eb98ef4a695b9e30b /docs | |
| parent | 1afe96a7e997ce7748f066b206a85ac648f7a87c (diff) | |
| download | git-repo-4ab2284a945d82b017c6646fca57c5973ffdabaf.tar.gz | |
manifest: Make extend-project support copyfile, linkfile and annotationmain
This allows an existing project to be extended by these elements.
Change-Id: I6826e518f39ca86485301491639101943b7e2ae0
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/519781
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/manifest-format.md | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/docs/manifest-format.md b/docs/manifest-format.md index 71fa04c5..06d370a3 100644 --- a/docs/manifest-format.md +++ b/docs/manifest-format.md | |||
| @@ -98,7 +98,9 @@ following DTD: | |||
| 98 | <!ATTLIST linkfile src CDATA #REQUIRED> | 98 | <!ATTLIST linkfile src CDATA #REQUIRED> |
| 99 | <!ATTLIST linkfile dest CDATA #REQUIRED> | 99 | <!ATTLIST linkfile dest CDATA #REQUIRED> |
| 100 | 100 | ||
| 101 | <!ELEMENT extend-project EMPTY> | 101 | <!ELEMENT extend-project (annotation*, |
| 102 | copyfile*, | ||
| 103 | linkfile*)> | ||
| 102 | <!ATTLIST extend-project name CDATA #REQUIRED> | 104 | <!ATTLIST extend-project name CDATA #REQUIRED> |
| 103 | <!ATTLIST extend-project path CDATA #IMPLIED> | 105 | <!ATTLIST extend-project path CDATA #IMPLIED> |
| 104 | <!ATTLIST extend-project dest-path CDATA #IMPLIED> | 106 | <!ATTLIST extend-project dest-path CDATA #IMPLIED> |
| @@ -427,19 +429,20 @@ Same syntax as the corresponding element of `project`. | |||
| 427 | ### Element annotation | 429 | ### Element annotation |
| 428 | 430 | ||
| 429 | Zero or more annotation elements may be specified as children of a | 431 | Zero or more annotation elements may be specified as children of a |
| 430 | project or remote element. Each element describes a name-value pair. | 432 | project element, an extend-project element, or a remote element. Each |
| 431 | For projects, this name-value pair will be exported into each project's | 433 | element describes a name-value pair. For projects, this name-value pair |
| 432 | environment during a 'forall' command, prefixed with `REPO__`. In addition, | 434 | will be exported into each project's environment during a 'forall' |
| 433 | there is an optional attribute "keep" which accepts the case insensitive values | 435 | command, prefixed with `REPO__`. In addition, there is an optional |
| 434 | "true" (default) or "false". This attribute determines whether or not the | 436 | attribute "keep" which accepts the case insensitive values "true" |
| 437 | (default) or "false". This attribute determines whether or not the | ||
| 435 | annotation will be kept when exported with the manifest subcommand. | 438 | annotation will be kept when exported with the manifest subcommand. |
| 436 | 439 | ||
| 437 | ### Element copyfile | 440 | ### Element copyfile |
| 438 | 441 | ||
| 439 | Zero or more copyfile elements may be specified as children of a | 442 | Zero or more copyfile elements may be specified as children of a |
| 440 | project element. Each element describes a src-dest pair of files; | 443 | project element, or an extend-project element. Each element describes a |
| 441 | the "src" file will be copied to the "dest" place during `repo sync` | 444 | src-dest pair of files; the "src" file will be copied to the "dest" |
| 442 | command. | 445 | place during `repo sync` command. |
| 443 | 446 | ||
| 444 | "src" is project relative, "dest" is relative to the top of the tree. | 447 | "src" is project relative, "dest" is relative to the top of the tree. |
| 445 | Copying from paths outside of the project or to paths outside of the repo | 448 | Copying from paths outside of the project or to paths outside of the repo |
