blob: 933c2adaf642522905bb8492da3fbf2f99b498f4 [file] [log] [blame]
Junio C Hamano788eeba2010-12-08 22:50:431git-remote-fd(1)
2================
3
4NAME
5----
6git-remote-fd - Reflect smart transport stream back to caller
7
8SYNOPSIS
9--------
10"fd::<infd>[,<outfd>][/<anything>]" (as URL)
11
12DESCRIPTION
13-----------
Junio C Hamano076ffcc2013-02-06 05:13:2114This helper uses specified file descriptors to connect to a remote Git server.
Junio C Hamano788eeba2010-12-08 22:50:4315This is not meant for end users but for programs and scripts calling git
16fetch, push or archive.
17
Junio C Hamano7165bf72011-01-04 22:06:1818If only <infd> is given, it is assumed to be a bidirectional socket connected
Junio C Hamano076ffcc2013-02-06 05:13:2119to remote Git server (git-upload-pack, git-receive-pack or
Junio C Hamano788eeba2010-12-08 22:50:4320git-upload-achive). If both <infd> and <outfd> are given, they are assumed
Junio C Hamano076ffcc2013-02-06 05:13:2121to be pipes connected to a remote Git server (<infd> being the inbound pipe
Junio C Hamano788eeba2010-12-08 22:50:4322and <outfd> being the outbound pipe.
23
24It is assumed that any handshaking procedures have already been completed
25(such as sending service request for git://) before this helper is started.
26
Junio C Hamano7165bf72011-01-04 22:06:1827<anything> can be any string. It is ignored. It is meant for providing
Junio C Hamano788eeba2010-12-08 22:50:4328information to user in the URL in case that URL is displayed in some
29context.
30
31ENVIRONMENT VARIABLES
32---------------------
33GIT_TRANSLOOP_DEBUG::
34If set, prints debugging information about various reads/writes.
35
36EXAMPLES
37--------
Junio C Hamano16ebcd02011-08-05 00:05:4538`git fetch fd::17 master`::
Junio C Hamano788eeba2010-12-08 22:50:4339Fetch master, using file descriptor #17 to communicate with
40git-upload-pack.
41
Junio C Hamano16ebcd02011-08-05 00:05:4542`git fetch fd::17/foo master`::
Junio C Hamano788eeba2010-12-08 22:50:4343Same as above.
44
Junio C Hamano16ebcd02011-08-05 00:05:4545`git push fd::7,8 master (as URL)`::
Junio C Hamano788eeba2010-12-08 22:50:4346Push master, using file descriptor #7 to read data from
47git-receive-pack and file descriptor #8 to write data to
48same service.
49
Junio C Hamano16ebcd02011-08-05 00:05:4550`git push fd::7,8/bar master`::
Junio C Hamano788eeba2010-12-08 22:50:4351Same as above.
52
53Documentation
54--------------
Junio C Hamano076ffcc2013-02-06 05:13:2155Documentation by Ilari Liusvaara and the Git list <git@vger.kernel.org>
Junio C Hamano788eeba2010-12-08 22:50:4356
57GIT
58---
59Part of the linkgit:git[1] suite