summaryrefslogtreecommitdiffstats
path: root/man1/git-remote-fd.1
blob: a84d0e242edc74466db89761355f625a16184365 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
'\" t
.\"     Title: git-remote-fd
.\"    Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\"      Date: 2024-04-23
.\"    Manual: Git Manual
.\"    Source: Git 2.45.0.rc0.48.g10f1281498
.\"  Language: English
.\"
.TH "GIT\-REMOTE\-FD" "1" "2024\-04\-23" "Git 2\&.45\&.0\&.rc0\&.48\&.g1" "Git Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
git-remote-fd \- Reflect smart transport stream back to caller
.SH "SYNOPSIS"
.sp
"fd::<infd>[,<outfd>][/<anything>]" (as URL)
.SH "DESCRIPTION"
.sp
This helper uses specified file descriptors to connect to a remote Git server\&. This is not meant for end users but for programs and scripts calling git fetch, push, or archive\&.
.sp
If only <infd> is given, it is assumed to be a bidirectional socket connected to a remote Git server (git\-upload\-pack, git\-receive\-pack, or git\-upload\-archive)\&. If both <infd> and <outfd> are given, they are assumed to be pipes connected to a remote Git server (<infd> being the inbound pipe and <outfd> being the outbound pipe)\&.
.sp
It is assumed that any handshaking procedures have already been completed (such as sending service request for git://) before this helper is started\&.
.sp
<anything> can be any string\&. It is ignored\&. It is meant for providing information to the user in the URL in case that URL is displayed in some context\&.
.SH "ENVIRONMENT VARIABLES"
.PP
GIT_TRANSLOOP_DEBUG
.RS 4
If set, prints debugging information about various reads/writes\&.
.RE
.SH "EXAMPLES"
.PP
\fBgit fetch fd::17 master\fR
.RS 4
Fetch master, using file descriptor #17 to communicate with git\-upload\-pack\&.
.RE
.PP
\fBgit fetch fd::17/foo master\fR
.RS 4
Same as above\&.
.RE
.PP
\fBgit push fd::7,8 master (as URL)\fR
.RS 4
Push master, using file descriptor #7 to read data from git\-receive\-pack and file descriptor #8 to write data to the same service\&.
.RE
.PP
\fBgit push fd::7,8/bar master\fR
.RS 4
Same as above\&.
.RE
.SH "SEE ALSO"
.sp
\fBgitremote-helpers\fR(7)
.SH "GIT"
.sp
Part of the \fBgit\fR(1) suite