git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Documentation errors for HTTP protocol v2 and packfile
@ 2020-12-19 17:07 Ross Light
  2020-12-21  7:54 ` [PATCH 0/2] pack-format.txt: document lengths at start of delta data Martin Ågren
  0 siblings, 1 reply; 8+ messages in thread
From: Ross Light @ 2020-12-19 17:07 UTC (permalink / raw)
  To: git

Hello Git mailing list,

I'm working on a library to interoperate with the Git wire protocol.
While doing so, I noticed two omissions in the documentation:

1. In the protocol-v2 doc [1], the HTTP example implies that the first
bytes in the response are "000eversion 2\n" when in fact they will be
PKT-LINE("# service=git-upload-pack" LF) followed by a flush packet,
then the version 2 data.

2. In the pack-format doc, the Deltified representation section [2]
describes the instruction sequence well, but neglects to mention the
two size varints [3] at the beginning of such an object.

I think it would be good to correct these documents for others
attempting to work with Git internals. Let me know how I can help.

-Ross Light

[1]: https://github.com/git/git/blob/ae46588be0cd730430dded4491246dfb4eac5557/Documentation/technical/protocol-v2.txt#L72-L79
[2]: https://github.com/git/git/blob/ae46588be0cd730430dded4491246dfb4eac5557/Documentation/technical/pack-format.txt#L70-L76
[3]: https://github.com/git/git/blob/ae46588be0cd730430dded4491246dfb4eac5557/patch-delta.c#L29-L36

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-12-29 22:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-19 17:07 Documentation errors for HTTP protocol v2 and packfile Ross Light
2020-12-21  7:54 ` [PATCH 0/2] pack-format.txt: document lengths at start of delta data Martin Ågren
2020-12-21  7:54   ` [PATCH 1/2] pack-format.txt: define "varint" format Martin Ågren
2020-12-21 21:40     ` Junio C Hamano
2020-12-29 22:41       ` Martin Ågren
2020-12-21  7:54   ` [PATCH 2/2] pack-format.txt: document lengths at start of delta data Martin Ågren
2020-12-23  4:40   ` [PATCH 0/2] " Ross Light
2020-12-29 22:43   ` [PATCH v2] pack-format.txt: document sizes " Martin Ågren

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).