From a590e640a69b1a6ba448600cbc7f3be31178bc92 Mon Sep 17 00:00:00 2001 From: jiajia tang Date: Sun, 25 Apr 2021 20:02:02 +0800 Subject: Update copyfile and linkfile if manifest updated Currently, copyfiles and linkfiles which marked by "" and "" in manifest will be created by first exec 'repo sync'. But if some "" or "" are removed in manifest, then 'repo sync', these removed item dest can not be removed in the sourcecode workspace. This patch is intent to fix this issue, by save a 'copy-link-files.json' in .repo and then compared with new dest path when next sync. If any "" or "" were removed, the dest path will be removed in sourcecode at the same time. Bug: https://crbug.com/gerrit/11008 Change-Id: I6b7b41e94df0f9e6e52801ec755951a4c572d05d Signed-off-by: jiajia tang Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/304202 Reviewed-by: Mike Frysinger --- docs/internal-fs-layout.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/internal-fs-layout.md') diff --git a/docs/internal-fs-layout.md b/docs/internal-fs-layout.md index 0c59f988..8cc3cabd 100644 --- a/docs/internal-fs-layout.md +++ b/docs/internal-fs-layout.md @@ -110,6 +110,8 @@ Instead, you should use standard Git workflows like [git worktree] or [gitsubmodules] with [superprojects]. *** +* `copy-link-files.json`: Tracking file used by `repo sync` to determine when + copyfile or linkfile are added or removed and need corresponding updates. * `project.list`: Tracking file used by `repo sync` to determine when projects are added or removed and need corresponding updates in the checkout. * `projects/`: Bare checkouts of every project synced by the manifest. The -- cgit v1.2.3-54-g00ecf