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

Question about Git protocol v2 status

From
Rrlee <rlee287@proton.me>
Date
Jun 11, 2024, 00:21 UTC
Message-ID
<kMdINBpG8_XazfNJVjKkaYyCH4VKRgjQryAvNw2ceVZrNmJ8pqoowMgmGBhhDMS_-nQ02OX0dMglJA2EPrE39XIBtcZc8Wkr2Vcoh6_pzMg=@proton.me>
Hi all,
I've been looking into writing a custom Git remote helper. The man page for "gitremote-helpers" states that stateless-connect is used to connect to a Git server using v2 of the wire protocol, but that it is "Experimental; for internal use only." Moreover, the page describing protocol-v2 at https://git-scm.com/docs/protocol-v2 uses future tense, implying that v2 has not yet been finalized. However, the older blog post https://opensource.googleblog.com/2018/05/introducing-git-protocol-version-2.html states that v2 is expected to become part of Git v2.18 (with Git being many versions ahead of v2.18 by now), and my own testing shows that stateless-connect is used when performing Git operations via HTTPS with Github. Could I get some clarification on whether v2 is still experimental and on whether a custom gitremote-helper should declare (and implement) support for stateless-connect?
Thanks,
rlee287 [at] proton [dot] me
Next: Jeff King
Message 1 of 2 in “Question about Git protocol v2 status”
  1. rleeJun 11, 2024
  2. Jeff KingJun 11, 2024

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.