From 4ab2284a945d82b017c6646fca57c5973ffdabaf Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Thu, 16 Oct 2025 20:29:28 +0200 Subject: manifest: Make extend-project support copyfile, linkfile and annotation 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 Tested-by: Peter Kjellerstedt Reviewed-by: Gavin Mak --- docs/manifest-format.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'docs/manifest-format.md') 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: - + @@ -427,19 +429,20 @@ Same syntax as the corresponding element of `project`. ### Element annotation Zero or more annotation elements may be specified as children of a -project or remote element. Each element describes a name-value pair. -For projects, this name-value pair will be exported into each project's -environment during a 'forall' command, prefixed with `REPO__`. In addition, -there is an optional attribute "keep" which accepts the case insensitive values -"true" (default) or "false". This attribute determines whether or not the +project element, an extend-project element, or a remote element. Each +element describes a name-value pair. For projects, this name-value pair +will be exported into each project's environment during a 'forall' +command, prefixed with `REPO__`. In addition, there is an optional +attribute "keep" which accepts the case insensitive values "true" +(default) or "false". This attribute determines whether or not the annotation will be kept when exported with the manifest subcommand. ### Element copyfile Zero or more copyfile elements may be specified as children of a -project element. Each element describes a src-dest pair of files; -the "src" file will be copied to the "dest" place during `repo sync` -command. +project element, or an extend-project element. Each element describes a +src-dest pair of files; the "src" file will be copied to the "dest" +place during `repo sync` command. "src" is project relative, "dest" is relative to the top of the tree. Copying from paths outside of the project or to paths outside of the repo -- cgit v1.2.3-54-g00ecf