diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-11-27 22:25:30 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-04-10 09:17:50 +0900 |
commit | ede7f12d4a0f7362aaccd2c825a83765b9b9d968 (patch) | |
tree | e2b1683926292028a8e32ce32419228517d60d56 /docs/manifest-format.txt | |
parent | 04d84a23fd04c9e1dd15341eb7dd28a0d8ce99c6 (diff) | |
download | git-repo-ede7f12d4a0f7362aaccd2c825a83765b9b9d968.tar.gz |
Allow clone depth to be specified per project
If the clone-depth attribute is set on a project, its value will
be used to set the depth when fetching the git. The value, if
given, must be a positive integer.
The value in the clone-depth attribute overrides any value given to
repo init via the --depth command line option.
Change-Id: I273015b3724213600b63e40cca4cafaa9f782ddf
Diffstat (limited to 'docs/manifest-format.txt')
-rw-r--r-- | docs/manifest-format.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/manifest-format.txt b/docs/manifest-format.txt index 0bf09f6f..f4629a55 100644 --- a/docs/manifest-format.txt +++ b/docs/manifest-format.txt | |||
@@ -56,6 +56,7 @@ following DTD: | |||
56 | <!ATTLIST project sync-c CDATA #IMPLIED> | 56 | <!ATTLIST project sync-c CDATA #IMPLIED> |
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 | 60 | ||
60 | <!ELEMENT annotation (EMPTY)> | 61 | <!ELEMENT annotation (EMPTY)> |
61 | <!ATTLIST annotation name CDATA #REQUIRED> | 62 | <!ATTLIST annotation name CDATA #REQUIRED> |
@@ -222,6 +223,10 @@ Attribute `upstream`: Name of the Git branch in which a sha1 | |||
222 | can be found. Used when syncing a revision locked manifest in | 223 | can be found. Used when syncing a revision locked manifest in |
223 | -c mode to avoid having to sync the entire ref space. | 224 | -c mode to avoid having to sync the entire ref space. |
224 | 225 | ||
226 | Attribute `clone-depth`: Set the depth to use when fetching this | ||
227 | project. If specified, this value will override any value given | ||
228 | to repo init with the --depth option on the command line. | ||
229 | |||
225 | Element annotation | 230 | Element annotation |
226 | ------------------ | 231 | ------------------ |
227 | 232 | ||