<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/technical/http-protocol.txt, branch v2.35.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.35.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.35.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2021-08-05T15:59:37Z</updated>
<entry>
<title>upload-pack: document and rename --advertise-refs</title>
<updated>2021-08-05T15:59:37Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-08-05T01:25:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=98e2d9d6f7dc1aff61e99a1daed98e18c7c8526b'/>
<id>urn:sha1:98e2d9d6f7dc1aff61e99a1daed98e18c7c8526b</id>
<content type='text'>
The --advertise-refs documentation in git-upload-pack added in
9812f2136b3 (upload-pack.c: use parse-options API, 2016-05-31) hasn't
been entirely true ever since v2 support was implemented in
e52449b6722 (connect: request remote refs using v2, 2018-03-15). Under
v2 we don't advertise the refs at all, but rather dump the
capabilities header.

This option has always been an obscure internal implementation detail,
it wasn't even documented for git-receive-pack. Since it has exactly
one user let's rename it to --http-backend-info-refs, which is more
accurate and points the reader in the right direction. Let's also
cross-link this from the protocol v1 and v2 documentation.

I'm retaining a hidden --advertise-refs alias in case there's any
external users of this, and making both options hidden to the bash
completion (as with most other internal-only options).

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>http-protocol.txt: document SHA-256 "want"/"have" format</title>
<updated>2020-08-17T17:35:12Z</updated>
<author>
<name>Martin Ågren</name>
<email>martin.agren@gmail.com</email>
</author>
<published>2020-08-15T16:05:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5b6422a6160dc04faa6742434a4d162b4899cfe3'/>
<id>urn:sha1:5b6422a6160dc04faa6742434a4d162b4899cfe3</id>
<content type='text'>
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 &lt;martin.agren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: fix wrong 4-byte length of pkt-line message</title>
<updated>2020-05-21T17:52:01Z</updated>
<author>
<name>Jiuyang Xie</name>
<email>jiuyangxie@gmail.com</email>
</author>
<published>2020-05-21T11:32:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2c31a7aa4459f0036aad76e4a0f2c0ddaebb4fc3'/>
<id>urn:sha1:2c31a7aa4459f0036aad76e4a0f2c0ddaebb4fc3</id>
<content type='text'>
The first four bytes of the line, the pkt-len, indicates the total
length of the pkt-line in hexadecimal. Fix wrong pkt-len headers of
some pkt-line messages in `http-protocol.txt` and `pack-protocol.txt`.

Reviewed-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Jiuyang Xie &lt;jiuyang.xjy@alibaba-inc.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: fix want-capability separator</title>
<updated>2018-07-30T18:25:20Z</updated>
<author>
<name>Masaya Suzuki</name>
<email>draftcode@gmail.com</email>
</author>
<published>2018-07-28T21:16:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=742587662fbdf487eb85e847f6253a4f5dcf18fa'/>
<id>urn:sha1:742587662fbdf487eb85e847f6253a4f5dcf18fa</id>
<content type='text'>
Unlike ref advertisement, client capabilities and the first want are
separated by SP, not NUL, in the implementation. Fix the documentation
to align with the implementation. pack-protocol.txt is already fixed.

Signed-off-by: Masaya Suzuki &lt;masayasuzuki@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>smart-http: document flush after "# service" line</title>
<updated>2018-03-05T19:05:19Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2018-03-03T05:27:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0aa7a780995d3bbef4524a2cdc2e5d33cca56fa9'/>
<id>urn:sha1:0aa7a780995d3bbef4524a2cdc2e5d33cca56fa9</id>
<content type='text'>
The http-protocol.txt spec fails to mention that a flush packet
comes in the smart server response after sending the "service"
header.

Technically the client code is actually ready to receive an
arbitrary number of headers here, but since we haven't
introduced any other headers in the past decade (and the
client would just throw them away), let's not mention it in
the spec.

This fixes both BNF and the example. While we're fixing the
latter, let's also add the missing flush after the ref list.

Reported-by: Dorian Taylor &lt;dorian.taylor.lists@gmail.com&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: document Extra Parameters</title>
<updated>2017-10-17T01:51:30Z</updated>
<author>
<name>Jonathan Tan</name>
<email>jonathantanmy@google.com</email>
</author>
<published>2017-10-16T17:55:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6464679d9620d91b639e2681b9cc6473f3856d09'/>
<id>urn:sha1:6464679d9620d91b639e2681b9cc6473f3856d09</id>
<content type='text'>
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 &lt;jonathantanmy@google.com&gt;
Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>upload-pack: optionally allow fetching reachable sha1</title>
<updated>2015-05-23T01:25:36Z</updated>
<author>
<name>Fredrik Medley</name>
<email>fredrik.medley@gmail.com</email>
</author>
<published>2015-05-21T20:23:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=68ee628932c2196742b77d2961c5e16360734a62'/>
<id>urn:sha1:68ee628932c2196742b77d2961c5e16360734a62</id>
<content type='text'>
With uploadpack.allowReachableSHA1InWant configuration option set on the
server side, "git fetch" can make a request with a "want" line that names
an object that has not been advertised (likely to have been obtained out
of band or from a submodule pointer). Only objects reachable from the
branch tips, i.e. the union of advertised branches and branches hidden by
transfer.hideRefs, will be processed. Note that there is an associated
cost of having to walk back the history to check the reachability.

This feature can be used when obtaining the content of a certain commit,
for which the sha1 is known, without the need of cloning the whole
repository, especially if a shallow fetch is used. Useful cases are e.g.
repositories containing large files in the history, fetching only the
needed data for a submodule checkout, when sharing a sha1 without telling
which exact branch it belongs to and in Gerrit, if you think in terms of
commits instead of change numbers. (The Gerrit case has already been
solved through allowTipSHA1InWant as every Gerrit change has a ref.)

Signed-off-by: Fredrik Medley &lt;fredrik.medley@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ye/doc-http-proto'</title>
<updated>2014-06-25T19:23:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-06-25T19:23:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ccca6b6523d7071cd0ee09fd00ea3e05d4b8e3eb'/>
<id>urn:sha1:ccca6b6523d7071cd0ee09fd00ea3e05d4b8e3eb</id>
<content type='text'>
* ye/doc-http-proto:
  http-protocol.txt: Basic Auth is defined in RFC 2617, not RFC 2616
</content>
</entry>
<entry>
<title>http-protocol.txt: Basic Auth is defined in RFC 2617, not RFC 2616</title>
<updated>2014-06-16T19:00:43Z</updated>
<author>
<name>Yi EungJun</name>
<email>eungjun.yi@navercorp.com</email>
</author>
<published>2014-06-14T19:09:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=04953bc888e648dc22c172ffa74de1b2a08a209a'/>
<id>urn:sha1:04953bc888e648dc22c172ffa74de1b2a08a209a</id>
<content type='text'>
Signed-off-by: Yi EungJun &lt;eungjun.yi@navercorp.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: use "command-line" when used as a compound adjective, and fix other minor grammatical issues</title>
<updated>2014-05-21T20:57:10Z</updated>
<author>
<name>Jason St. John</name>
<email>jstjohn@purdue.edu</email>
</author>
<published>2014-05-21T18:52:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=06ab60c06606613f238f3154cb27cb22d9723967'/>
<id>urn:sha1:06ab60c06606613f238f3154cb27cb22d9723967</id>
<content type='text'>
Signed-off-by: Jason St. John &lt;jstjohn@purdue.edu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
