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

[RFC PATCH v2 0/2] Two new remote helpers

From
ILIlari Liusvaara <ilari.liusvaara@elisanet.fi>
Date
Jun 28, 2010, 07:11 UTC
Message-ID
<1277709111-11230-1-git-send-email-ilari.liusvaara@elisanet.fi>

The first helper (fd) is meant for frontends that want to override how transport link is created. Currently this would require hacks based on either GIT_SSH or GIT_PROXY (see tortoiseplink). It works by reflecting the smart transport stream to specified file descriptors.

The second one (ext) invokes specified command, reading/writing smart transport stream (with optional git://-style request) to its stdin/stdout. It is meant for situations where one wants unusual kind of transport link. It can be ssh connection with one-off parameters[1], things like rsh (if you have to use it because some absolutely incomprehensible reason, hopefully its really krb5-rsh)[2], wrapping git:// in TLS[3], accessing servers on unix domain sockets[4], etc...

Changes from last time:
- This cover letter.
- Support \G and \V which are for sending git:// style request in-channel.[5]

[1] "ext::ssh -i somekey user@host.example \S /path/to/repo.git" [2] "ext::rsh -l user host.example \S /path/to/repo.git" [3] Don't ask me how, especially not how to get connection to git-daemon2 that way. [4] "ext::socat - ABSTRACT-CONNECT:/tmp/gits \G/gitolite-admin" [5] "ext::nc host.example 9418 \G/repo.git \Vfoo.host.example" (with vhost) or "ext::nc host.example 9418 \G/repo.git" (without vhost).

Ilari Liusvaara (2):
  New remote helper git-remote-fd
  New remote helper: git-remote-ext
 Makefile             |    2 +
 builtin.h            |    2 +
 builtin/remote-ext.c |  300 ++++++++++++++++++++++++++++++++++++++++++++++++++
 builtin/remote-fd.c  |   88 +++++++++++++++
 git.c                |    2 +
 transport-helper.c   |  130 ++++++++++++++++++++++
 transport.h          |    1 +
 7 files changed, 525 insertions(+), 0 deletions(-)
 create mode 100644 builtin/remote-ext.c
 create mode 100644 builtin/remote-fd.c
Next: Ilari Liusvaara
Message 1 of 3 in “Two new remote helpers”
  1. 0/2 Two new remote helpersIlari Liusvaara, Jun 28, 2010
  2. 1/2 New remote helper git-remote-fdIlari Liusvaara, Jun 28, 2010
  3. 2/2 New remote helper: git-remote-extIlari Liusvaara, Jun 28, 2010

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.