diff options
author | Mike Frysinger <vapier@google.com> | 2019-07-31 17:34:23 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2019-08-01 04:06:04 +0000 |
commit | c5b172ad6f65e573193a555806bd912b2582ab56 (patch) | |
tree | 6bf1ace5cb3f448f6e15c960677b3d26d28106f8 /docs/manifest-format.md | |
parent | 87deaefd86e14518635cf69d8318a38dacf656ab (diff) | |
download | git-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.md | 12 |
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 | |||
322 | project element. Each element describes a src-dest pair of files; | 322 | project element. Each element describes a src-dest pair of files; |
323 | the "src" file will be copied to the "dest" place during `repo sync` | 323 | the "src" file will be copied to the "dest" place during `repo sync` |
324 | command. | 324 | command. |
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. |
327 | Copying from paths outside of the project or to paths outside of the repo | ||
328 | client is not allowed. | ||
329 | |||
330 | "src" and "dest" must be files. Directories or symlinks are not allowed. | ||
331 | Intermediate paths must not be symlinks either. | ||
326 | 332 | ||
327 | ### Element linkfile | 333 | ### Element linkfile |
328 | 334 | ||
329 | It's just like copyfile and runs at the same time as copyfile but | 335 | It's just like copyfile and runs at the same time as copyfile but |
330 | instead of copying it creates a symlink. | 336 | instead of copying it creates a symlink. |
331 | 337 | ||
338 | The symlink is created at "dest" (relative to the top of the tree) and | ||
339 | points to the path specified by "src". | ||
340 | |||
341 | The symlink target may be a file or directory, but it may not point outside | ||
342 | of the repo client. | ||
343 | |||
332 | ### Element remove-project | 344 | ### Element remove-project |
333 | 345 | ||
334 | Deletes the named project from the internal manifest table, possibly | 346 | Deletes the named project from the internal manifest table, possibly |