summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2008-11-06 10:25:35 -0800
committerShawn O. Pearce <sop@google.com>2008-11-06 11:23:06 -0800
commitae6e0949d187c35d79dbc0b21788fdbb2c65bf78 (patch)
tree7a825c0e8cb24f0df512f62f4e44970026641dda /docs
parent339ba9f6f70b1733f89a5ff89d5f155389a04094 (diff)
downloadgit-repo-ae6e0949d187c35d79dbc0b21788fdbb2c65bf78.tar.gz
Add <remote project-name="..."> attribute within projects
By setting a project-name on a remote nested within a project forks of a project like the Linux kernel can be easily handled by fetching all relevant forks into the same client side project under different remote names. Developers can create branches off different remotes using `git checkout --track -b $myname $remote/$branch` and later `repo upload` automatically redirects to the proper fork project in the code review server. Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/manifest-format.txt13
1 files changed, 10 insertions, 3 deletions
diff --git a/docs/manifest-format.txt b/docs/manifest-format.txt
index 409524bb..2b49d466 100644
--- a/docs/manifest-format.txt
+++ b/docs/manifest-format.txt
@@ -23,9 +23,10 @@ following DTD:
23 <!ELEMENT manifest (remote*, default?, project*)> 23 <!ELEMENT manifest (remote*, default?, project*)>
24 24
25 <!ELEMENT remote (EMPTY)> 25 <!ELEMENT remote (EMPTY)>
26 <!ATTLIST remote name ID #REQUIRED> 26 <!ATTLIST remote name ID #REQUIRED>
27 <!ATTLIST remote fetch CDATA #REQUIRED> 27 <!ATTLIST remote fetch CDATA #REQUIRED>
28 <!ATTLIST remote review CDATA #IMPLIED> 28 <!ATTLIST remote review CDATA #IMPLIED>
29 <!ATTLIST remote project-name CDATA #IMPLIED>
29 30
30 <!ELEMENT default (EMPTY)> 31 <!ELEMENT default (EMPTY)>
31 <!ATTLIST default remote IDREF #IMPLIED> 32 <!ATTLIST default remote IDREF #IMPLIED>
@@ -67,6 +68,12 @@ Attribute `review`: Hostname of the Gerrit server where reviews
67are uploaded to by `repo upload`. This attribute is optional; 68are uploaded to by `repo upload`. This attribute is optional;
68if not specified then `repo upload` will not function. 69if not specified then `repo upload` will not function.
69 70
71Attribute `project-name`: Specifies the name of this project used
72by the review server given in the review attribute of this element.
73Only permitted when the remote element is nested inside of a project
74element (see below). If not given, defaults to the name supplied
75in the project's name attribute.
76
70 77
71Element default 78Element default
72--------------- 79---------------