summaryrefslogtreecommitdiffstats
path: root/docs/manifest-format.md
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2019-07-31 17:34:23 -0400
committerMike Frysinger <vapier@google.com>2019-08-01 04:06:04 +0000
commitc5b172ad6f65e573193a555806bd912b2582ab56 (patch)
tree6bf1ace5cb3f448f6e15c960677b3d26d28106f8 /docs/manifest-format.md
parent87deaefd86e14518635cf69d8318a38dacf656ab (diff)
downloadgit-repo-c5b172ad6f65e573193a555806bd912b2582ab56.tar.gz
manifest-format: clarify <copyfile> & <linkfile> restrictions
While we don't (yet) explicitly enforce all of these, make sure we document the expected behavior so we can all agree on it. Bug: https://crbug.com/gerrit/11218 Change-Id: Ife8298702fa445ac055ef43c6d62706a9cb199ce Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/232893 Reviewed-by: David Pursehouse <dpursehouse@collab.net> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'docs/manifest-format.md')
-rw-r--r--docs/manifest-format.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/manifest-format.md b/docs/manifest-format.md
index d776a81b..92d659f1 100644
--- a/docs/manifest-format.md
+++ b/docs/manifest-format.md
@@ -322,13 +322,25 @@ Zero or more copyfile elements may be specified as children of a
322project element. Each element describes a src-dest pair of files; 322project element. Each element describes a src-dest pair of files;
323the "src" file will be copied to the "dest" place during `repo sync` 323the "src" file will be copied to the "dest" place during `repo sync`
324command. 324command.
325
325"src" is project relative, "dest" is relative to the top of the tree. 326"src" is project relative, "dest" is relative to the top of the tree.
327Copying from paths outside of the project or to paths outside of the repo
328client is not allowed.
329
330"src" and "dest" must be files. Directories or symlinks are not allowed.
331Intermediate paths must not be symlinks either.
326 332
327### Element linkfile 333### Element linkfile
328 334
329It's just like copyfile and runs at the same time as copyfile but 335It's just like copyfile and runs at the same time as copyfile but
330instead of copying it creates a symlink. 336instead of copying it creates a symlink.
331 337
338The symlink is created at "dest" (relative to the top of the tree) and
339points to the path specified by "src".
340
341The symlink target may be a file or directory, but it may not point outside
342of the repo client.
343
332### Element remove-project 344### Element remove-project
333 345
334Deletes the named project from the internal manifest table, possibly 346Deletes the named project from the internal manifest table, possibly