summaryrefslogtreecommitdiff
path: root/Documentation/technical/http-protocol.txt
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2017-10-16 17:55:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-10-17 01:51:30 (GMT)
commit6464679d9620d91b639e2681b9cc6473f3856d09 (patch)
tree8e2c71d5968bdc21bbb22d176eb7255b24d3e207 /Documentation/technical/http-protocol.txt
parent94b8ae5aca41538cf78918663f8b8294f6dcaa21 (diff)
downloadgit-6464679d9620d91b639e2681b9cc6473f3856d09.zip
git-6464679d9620d91b639e2681b9cc6473f3856d09.tar.gz
git-6464679d9620d91b639e2681b9cc6473f3856d09.tar.bz2
Documentation: document Extra Parameters
Document the server support for Extra Parameters, additional information that the client can send in its first message to the server during a Git client-server interaction. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/http-protocol.txt')
-rw-r--r--Documentation/technical/http-protocol.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/technical/http-protocol.txt b/Documentation/technical/http-protocol.txt
index 1c561bd..a0e45f2 100644
--- a/Documentation/technical/http-protocol.txt
+++ b/Documentation/technical/http-protocol.txt
@@ -219,6 +219,10 @@ smart server reply:
S: 003c2cb58b79488a98d2721cea644875a8dd0026b115 refs/tags/v1.0\n
S: 003fa3c2e2402b99163d1d59756e5f207ae21cccba4c refs/tags/v1.0^{}\n
+The client may send Extra Parameters (see
+Documentation/technical/pack-protocol.txt) as a colon-separated string
+in the Git-Protocol HTTP header.
+
Dumb Server Response
^^^^^^^^^^^^^^^^^^^^
Dumb servers MUST respond with the dumb server reply format.
@@ -269,7 +273,11 @@ the C locale ordering. The stream SHOULD include the default ref
named `HEAD` as the first ref. The stream MUST include capability
declarations behind a NUL on the first ref.
+The returned response contains "version 1" if "version=1" was sent as an
+Extra Parameter.
+
smart_reply = PKT-LINE("# service=$servicename" LF)
+ *1("version 1")
ref_list
"0000"
ref_list = empty_list / non_empty_list