git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] pack-protocol: mention and point to docs for protocol v2

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jul 24, 2018, 04:52 UTC
Message-ID
<20180724045233.GB208393@aiede.svl.corp.google.com>
In-Reply-To
<20180723174807.28903-1-bmwill@google.com>
Hi,
Brandon Williams wrote:
Show 8 quoted lines
> --- a/Documentation/technical/pack-protocol.txt
> +++ b/Documentation/technical/pack-protocol.txt
> @@ -50,7 +50,8 @@ Each Extra Parameter takes the form of `<key>=<value>` or `<key>`.
>  
>  Servers that receive any such Extra Parameters MUST ignore all
>  unrecognized keys. Currently, the only Extra Parameter recognized is
> -"version=1".
> +"version" with a vlue of '1' or '2'.  See protocol-v2.txt for more
value?
> +information on protocol version 2.

Thanks. Some thoughts on other parts of this document that may need updating:

- the whole document assumes that 0 and 1 are the only protocol
  versions.  E.g. the discussion of the version number line in the
  response when "version=1" is sent as an Extra Paramter should probably
  apply to version 2, too.
- because the document was written before protocol v2, it describes the
  more complicated v1 that many readers shouldn't have to care about
- there is no one document that describes v2 in a self contained way,
  since protocol-v2.txt makes reference to protocol v1.
- the description of pkt-line format in protocol-common.txt is missing
  a discussion of delim-pkt.

Not about this patch, but I wonder if an organization along the following lines would make sense?

 1. Rename pack-protocol.txt to protocol-v1.txt.  Rename
    protocol-v2.txt to pack-protocol.txt.
 2. Make pack-protocol.txt self-contained, and remove any redundant
    sections from protocol-v1.txt.
 3. Add a new protocol-v2.txt that briefly describes the benefits and
    highlights of protocol v2, referring to pack-protocol.txt for
    details.

That way, newcomers of the future could read pack-protocol.txt and quickly glean the main protocol in (then) current use.

What do you think?

Thanks, Jonathan

Previous: Brandon WilliamsNext: Brandon Williams
Message 2 of 6 in “pack-protocol: mention and point to docs for protocol v2”
  1. pack-protocol: mention and point to docs for protocol v2Brandon Williams, Jul 23, 2018
  2. Jonathan NiederJul 24, 2018
  3. Brandon WilliamsJul 24, 2018
  4. Junio C HamanoJul 24, 2018
  5. Brandon WilliamsJul 24, 2018
  6. Jonathan NiederJul 24, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.