File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 1
1
Git Protocol Capabilities
2
2
=========================
3
3
4
+ NOTE: this document describes capabilities for versions 0 and 1 of the pack
5
+ protocol. For version 2, please refer to the link:protocol-v2.html[protocol-v2]
6
+ doc.
7
+
4
8
Servers SHOULD support all capabilities defined in this document.
5
9
6
10
On the very first line of the initial server response of either
@@ -172,6 +176,20 @@ agent strings are purely informative for statistics and debugging
172
176
purposes, and MUST NOT be used to programmatically assume the presence
173
177
or absence of particular features.
174
178
179
+ symref
180
+ ------
181
+
182
+ This parameterized capability is used to inform the receiver which symbolic ref
183
+ points to which ref; for example, "symref=HEAD:refs/heads/master" tells the
184
+ receiver that HEAD points to master. This capability can be repeated to
185
+ represent multiple symrefs.
186
+
187
+ Servers SHOULD include this capability for the HEAD symref if it is one of the
188
+ refs being sent.
189
+
190
+ Clients MAY use the parameters from this capability to select the proper initial
191
+ branch when cloning a repository.
192
+
175
193
shallow
176
194
-------
177
195
You can’t perform that action at this time.
0 commit comments