Skip to content

Commit 5b6422a

Browse files
Martin Ågrengitster
authored andcommitted
http-protocol.txt: document SHA-256 "want"/"have" format
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 878e727 commit 5b6422a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/technical/http-protocol.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,9 @@ at all in the request stream:
401401
The stream is terminated by a pkt-line flush (`0000`).
402402

403403
A single "want" or "have" command MUST have one hex formatted
404-
SHA-1 as its value. Multiple SHA-1s MUST be sent by sending
405-
multiple commands.
404+
object name as its value. Multiple object names MUST be sent by sending
405+
multiple commands. Object names MUST be given using the object format
406+
negotiated through the `object-format` capability (default SHA-1).
406407

407408
The `have` list is created by popping the first 32 commits
408409
from `c_pending`. Less can be supplied if `c_pending` empties.

0 commit comments

Comments
 (0)