source: git/branches/dmik/Documentation/git-remote-fd.txt@ 782

Last change on this file since 782 was 782, checked in by dmik, 11 years ago

git: Merge version 2.0.0 from vendor to dmik branch.

File size: 1.5 KB
Line 
1git-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-----------
14This helper uses specified file descriptors to connect to a remote Git server.
15This is not meant for end users but for programs and scripts calling git
16fetch, push or archive.
17
18If only <infd> is given, it is assumed to be a bidirectional socket connected
19to remote Git server (git-upload-pack, git-receive-pack or
20git-upload-achive). If both <infd> and <outfd> are given, they are assumed
21to be pipes connected to a remote Git server (<infd> being the inbound pipe
22and <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
27<anything> can be any string. It is ignored. It is meant for providing
28information to user in the URL in case that URL is displayed in some
29context.
30
31ENVIRONMENT VARIABLES
32---------------------
33GIT_TRANSLOOP_DEBUG::
34 If set, prints debugging information about various reads/writes.
35
36EXAMPLES
37--------
38`git fetch fd::17 master`::
39 Fetch master, using file descriptor #17 to communicate with
40 git-upload-pack.
41
42`git fetch fd::17/foo master`::
43 Same as above.
44
45`git push fd::7,8 master (as URL)`::
46 Push master, using file descriptor #7 to read data from
47 git-receive-pack and file descriptor #8 to write data to
48 same service.
49
50`git push fd::7,8/bar master`::
51 Same as above.
52
53GIT
54---
55Part of the linkgit:git[1] suite
Note: See TracBrowser for help on using the repository browser.