]> git.ipfire.org Git - thirdparty/git.git/commitdiff
http-protocol.txt: document SHA-256 "want"/"have" format
authorMartin Ågren <martin.agren@gmail.com>
Sat, 15 Aug 2020 16:05:59 +0000 (18:05 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Aug 2020 17:35:12 +0000 (10:35 -0700)
Document that rather than always naming objects using SHA-1, we should
use whatever has been negotiated using the object-format capability.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/http-protocol.txt

index 51a79e63de9b77656ec225ea3e8d38289d9e4ae8..96d89ea9b226136603a041e96789709c979883fd 100644 (file)
@@ -401,8 +401,9 @@ at all in the request stream:
 The stream is terminated by a pkt-line flush (`0000`).
 
 A single "want" or "have" command MUST have one hex formatted
-SHA-1 as its value.  Multiple SHA-1s MUST be sent by sending
-multiple commands.
+object name as its value.  Multiple object names MUST be sent by sending
+multiple commands. Object names MUST be given using the object format
+negotiated through the `object-format` capability (default SHA-1).
 
 The `have` list is created by popping the first 32 commits
 from `c_pending`.  Less can be supplied if `c_pending` empties.