summaryrefslogtreecommitdiff
path: root/Documentation/technical
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-05-13 00:53:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-05-14 01:14:08 (GMT)
commitb8615c3c63246ae4340239fbad2e6b64cbeb0fa5 (patch)
tree475620143232d1f549a399d2634d374a4751c046 /Documentation/technical
parenta1142963710fd71e5e6e0feb0c4020e977301af7 (diff)
downloadgit-b8615c3c63246ae4340239fbad2e6b64cbeb0fa5.zip
git-b8615c3c63246ae4340239fbad2e6b64cbeb0fa5.tar.gz
git-b8615c3c63246ae4340239fbad2e6b64cbeb0fa5.tar.bz2
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>
Diffstat (limited to 'Documentation/technical')
-rw-r--r--Documentation/technical/protocol-capabilities.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/technical/protocol-capabilities.txt b/Documentation/technical/protocol-capabilities.txt
index 2b267c0..36ccd14 100644
--- a/Documentation/technical/protocol-capabilities.txt
+++ b/Documentation/technical/protocol-capabilities.txt
@@ -176,6 +176,21 @@ agent strings are purely informative for statistics and debugging
purposes, and MUST NOT be used to programmatically assume the presence
or absence of particular features.
+object-format
+-------------
+
+This capability, which takes a hash algorithm as an argument, indicates
+that the server supports the given hash algorithms. It may be sent
+multiple times; if so, the first one given is the one used in the ref
+advertisement.
+
+When provided by the client, this indicates that it intends to use the
+given hash algorithm to communicate. The algorithm provided must be one
+that the server supports.
+
+If this capability is not provided, it is assumed that the only
+supported algorithm is SHA-1.
+
symref
------