summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorScott Fan <fancp2007@gmail.com>2013-02-28 09:34:14 +0800
committerScott Fan <fancp2007@gmail.com>2013-04-11 08:59:09 +0800
commitdb83b1b5abcc2df1b5c7a76ca74ff60e88fe956e (patch)
tree43f388a8dfd84a8e7b38c9e5787ae60e3dc84265 /docs
parentede7f12d4a0f7362aaccd2c825a83765b9b9d968 (diff)
downloadgit-repo-db83b1b5abcc2df1b5c7a76ca74ff60e88fe956e.tar.gz
Allow mirror to be created in directories specified by 'path' attribute
In some cases, especially when local manifest files exist, users may want to force the mirrored repositories to be created in folders according to their 'path' attribute in the manifest, rather than according to the name of the repositories. To enable this functionality for specified mirror, add a new attribute 'force-path' for that project in the manifest, set its value to 'true'. Change-Id: I61df8c987a23d84309b113e7d886ec90c838a6cc Signed-off-by: Scott Fan <fancp2007@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/manifest-format.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/manifest-format.txt b/docs/manifest-format.txt
index f4629a55..59f6a2fd 100644
--- a/docs/manifest-format.txt
+++ b/docs/manifest-format.txt
@@ -57,6 +57,7 @@ following DTD:
57 <!ATTLIST project sync-s CDATA #IMPLIED> 57 <!ATTLIST project sync-s CDATA #IMPLIED>
58 <!ATTLIST project upstream CDATA #IMPLIED> 58 <!ATTLIST project upstream CDATA #IMPLIED>
59 <!ATTLIST project clone-depth CDATA #IMPLIED> 59 <!ATTLIST project clone-depth CDATA #IMPLIED>
60 <!ATTLIST project force-path CDATA #IMPLIED>
60 61
61 <!ELEMENT annotation (EMPTY)> 62 <!ELEMENT annotation (EMPTY)>
62 <!ATTLIST annotation name CDATA #REQUIRED> 63 <!ATTLIST annotation name CDATA #REQUIRED>
@@ -227,6 +228,12 @@ Attribute `clone-depth`: Set the depth to use when fetching this
227project. If specified, this value will override any value given 228project. If specified, this value will override any value given
228to repo init with the --depth option on the command line. 229to repo init with the --depth option on the command line.
229 230
231Attribute `force-path`: Set to true to force this project to create the
232local mirror repository according to its `path` attribute (if supplied)
233rather than the `name` attribute. This attribute only applies to the
234local mirrors syncing, it will be ignored when syncing the projects in a
235client working directory.
236
230Element annotation 237Element annotation
231------------------ 238------------------
232 239