| Junio C Hamano | 788eeba | 2010-12-08 22:50:43 | [diff] [blame] | 1 | git-remote-fd(1) | 
 | 2 | ================ | 
 | 3 |  | 
 | 4 | NAME | 
 | 5 | ---- | 
 | 6 | git-remote-fd - Reflect smart transport stream back to caller | 
 | 7 |  | 
 | 8 | SYNOPSIS | 
 | 9 | -------- | 
 | 10 | "fd::<infd>[,<outfd>][/<anything>]" (as URL) | 
 | 11 |  | 
 | 12 | DESCRIPTION | 
 | 13 | ----------- | 
| Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 14 | This helper uses specified file descriptors to connect to a remote Git server. | 
| Junio C Hamano | 788eeba | 2010-12-08 22:50:43 | [diff] [blame] | 15 | This is not meant for end users but for programs and scripts calling git | 
 | 16 | fetch, push or archive. | 
 | 17 |  | 
| Junio C Hamano | 7165bf7 | 2011-01-04 22:06:18 | [diff] [blame] | 18 | If only <infd> is given, it is assumed to be a bidirectional socket connected | 
| Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 19 | to remote Git server (git-upload-pack, git-receive-pack or | 
| Junio C Hamano | 788eeba | 2010-12-08 22:50:43 | [diff] [blame] | 20 | git-upload-achive). If both <infd> and <outfd> are given, they are assumed | 
| Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 21 | to be pipes connected to a remote Git server (<infd> being the inbound pipe | 
| Junio C Hamano | 788eeba | 2010-12-08 22:50:43 | [diff] [blame] | 22 | and <outfd> being the outbound pipe. | 
 | 23 |  | 
 | 24 | It 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 Hamano | 7165bf7 | 2011-01-04 22:06:18 | [diff] [blame] | 27 | <anything> can be any string. It is ignored. It is meant for providing | 
| Junio C Hamano | 788eeba | 2010-12-08 22:50:43 | [diff] [blame] | 28 | information to user in the URL in case that URL is displayed in some | 
 | 29 | context. | 
 | 30 |  | 
 | 31 | ENVIRONMENT VARIABLES | 
 | 32 | --------------------- | 
 | 33 | GIT_TRANSLOOP_DEBUG:: | 
 | 34 | If set, prints debugging information about various reads/writes. | 
 | 35 |  | 
 | 36 | EXAMPLES | 
 | 37 | -------- | 
| Junio C Hamano | 16ebcd0 | 2011-08-05 00:05:45 | [diff] [blame] | 38 | `git fetch fd::17 master`:: | 
| Junio C Hamano | 788eeba | 2010-12-08 22:50:43 | [diff] [blame] | 39 | Fetch master, using file descriptor #17 to communicate with | 
 | 40 | git-upload-pack. | 
 | 41 |  | 
| Junio C Hamano | 16ebcd0 | 2011-08-05 00:05:45 | [diff] [blame] | 42 | `git fetch fd::17/foo master`:: | 
| Junio C Hamano | 788eeba | 2010-12-08 22:50:43 | [diff] [blame] | 43 | Same as above. | 
 | 44 |  | 
| Junio C Hamano | 16ebcd0 | 2011-08-05 00:05:45 | [diff] [blame] | 45 | `git push fd::7,8 master (as URL)`:: | 
| Junio C Hamano | 788eeba | 2010-12-08 22:50:43 | [diff] [blame] | 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 |  | 
| Junio C Hamano | 16ebcd0 | 2011-08-05 00:05:45 | [diff] [blame] | 50 | `git push fd::7,8/bar master`:: | 
| Junio C Hamano | 788eeba | 2010-12-08 22:50:43 | [diff] [blame] | 51 | Same as above. | 
 | 52 |  | 
| Junio C Hamano | 1322024 | 2014-11-19 23:06:27 | [diff] [blame^] | 53 | SEE ALSO | 
 | 54 | -------- | 
 | 55 | linkgit:gitremote-helpers[1] | 
 | 56 |  | 
| Junio C Hamano | 788eeba | 2010-12-08 22:50:43 | [diff] [blame] | 57 | GIT | 
 | 58 | --- | 
 | 59 | Part of the linkgit:git[1] suite |