@matheusbsbs / matheus-bagliano / commits / 7f46e7ead1
Fork 0

Documentation/technical: document object-format for protocol v2

Document the object-format extension for protocol v2. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed May 25, 2020 at 19:59 UTC 7f46e7ead1d82538866265228f9d743f0e93e17a
1 file changed +9
Documentation/technical/protocol-v2.txt
+9
@@ -453,3 +453,12 @@ included in a request. This is done by sending each option as a
453 a request.
454
455 The provided options must not contain a NUL or LF character.
456 +
457 + object-format
458 +~~~~~~~~~~~~~~~
459 +
460 +The server can advertise the `object-format` capability with a value `X` (in the
461 +form `object-format=X`) to notify the client that the server is able to deal
462 +with objects using hash algorithm X. If not specified, the server is assumed to
463 +only handle SHA-1. If the client would like to use a hash algorithm other than
464 +SHA-1, it should specify its object-format string.