Skip to content

Commit 0756e61

Browse files
Martin Ågrengitster
authored andcommitted
protocol-capabilities.txt: clarify "allow-x-sha1-in-want" re SHA-256
Two of our capabilities contain "sha1" in their names, but that's historical. Clarify that object names are still to be given using whatever object format 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 123712b commit 0756e61

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Documentation/technical/protocol-capabilities.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,15 +324,19 @@ allow-tip-sha1-in-want
324324
----------------------
325325

326326
If the upload-pack server advertises this capability, fetch-pack may
327-
send "want" lines with SHA-1s that exist at the server but are not
328-
advertised by upload-pack.
327+
send "want" lines with object names that exist at the server but are not
328+
advertised by upload-pack. For historical reasons, the name of this
329+
capability contains "sha1". Object names are always given using the
330+
object format negotiated through the 'object-format' capability.
329331

330332
allow-reachable-sha1-in-want
331333
----------------------------
332334

333335
If the upload-pack server advertises this capability, fetch-pack may
334-
send "want" lines with SHA-1s that exist at the server but are not
335-
advertised by upload-pack.
336+
send "want" lines with object names that exist at the server but are not
337+
advertised by upload-pack. For historical reasons, the name of this
338+
capability contains "sha1". Object names are always given using the
339+
object format negotiated through the 'object-format' capability.
336340

337341
push-cert=<nonce>
338342
-----------------

0 commit comments

Comments
 (0)