Skip to content

Commit b8615c3

Browse files
bk2204gitster
authored andcommitted
Documentation: document v1 protocol object-format capability
Document a capability that indicates which hash algorithms are in use by both sides of a remote connection. Use the term "object-format", since this is the term used for the repository extension as well. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent a114296 commit b8615c3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Documentation/technical/protocol-capabilities.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,21 @@ agent strings are purely informative for statistics and debugging
176176
purposes, and MUST NOT be used to programmatically assume the presence
177177
or absence of particular features.
178178

179+
object-format
180+
-------------
181+
182+
This capability, which takes a hash algorithm as an argument, indicates
183+
that the server supports the given hash algorithms. It may be sent
184+
multiple times; if so, the first one given is the one used in the ref
185+
advertisement.
186+
187+
When provided by the client, this indicates that it intends to use the
188+
given hash algorithm to communicate. The algorithm provided must be one
189+
that the server supports.
190+
191+
If this capability is not provided, it is assumed that the only
192+
supported algorithm is SHA-1.
193+
179194
symref
180195
------
181196

0 commit comments

Comments
 (0)