2010-10-12 16:39:42 +00:00
|
|
|
git-remote-fd(1)
|
2010-11-17 17:15:34 +00:00
|
|
|
================
|
2010-10-12 16:39:42 +00:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
git-remote-fd - Reflect smart transport stream back to caller
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
"fd::<infd>[,<outfd>][/<anything>]" (as URL)
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2013-01-21 19:17:53 +00:00
|
|
|
This helper uses specified file descriptors to connect to a remote Git server.
|
2010-10-12 16:39:42 +00:00
|
|
|
This is not meant for end users but for programs and scripts calling git
|
2023-10-08 06:45:24 +00:00
|
|
|
fetch, push, or archive.
|
2010-10-12 16:39:42 +00:00
|
|
|
|
2011-01-03 19:03:34 +00:00
|
|
|
If only <infd> is given, it is assumed to be a bidirectional socket connected
|
2023-10-08 06:45:24 +00:00
|
|
|
to a remote Git server (git-upload-pack, git-receive-pack, or
|
2016-08-09 08:53:38 +00:00
|
|
|
git-upload-archive). If both <infd> and <outfd> are given, they are assumed
|
2013-01-21 19:17:53 +00:00
|
|
|
to be pipes connected to a remote Git server (<infd> being the inbound pipe
|
2023-10-08 06:45:27 +00:00
|
|
|
and <outfd> being the outbound pipe).
|
2010-10-12 16:39:42 +00:00
|
|
|
|
|
|
|
It is assumed that any handshaking procedures have already been completed
|
|
|
|
(such as sending service request for git://) before this helper is started.
|
|
|
|
|
2011-01-03 19:03:34 +00:00
|
|
|
<anything> can be any string. It is ignored. It is meant for providing
|
2023-10-08 06:45:17 +00:00
|
|
|
information to the user in the URL in case that URL is displayed in some
|
2010-10-12 16:39:42 +00:00
|
|
|
context.
|
|
|
|
|
2010-11-17 17:15:34 +00:00
|
|
|
ENVIRONMENT VARIABLES
|
|
|
|
---------------------
|
2010-10-12 16:39:42 +00:00
|
|
|
GIT_TRANSLOOP_DEBUG::
|
|
|
|
If set, prints debugging information about various reads/writes.
|
|
|
|
|
2010-11-17 17:15:34 +00:00
|
|
|
EXAMPLES
|
|
|
|
--------
|
docs: put listed example commands in backticks
Many examples of git command invocation are given in asciidoc listing
blocks, which makes them monospaced and avoids further interpretation of
special characters. Some manpages make a list of examples, like:
git foo::
Run git foo.
git foo -q::
Use the "-q" option.
to quickly show many variants. However, they can sometimes be hard to
read, because they are shown in a proportional-width font (so, for
example, seeing the difference between "-- foo" and "--foo" can be
difficult).
This patch puts all such examples into backticks, which gives the
equivalent formatting to a listing block (i.e., monospaced and without
character interpretation).
As a bonus, this also fixes an example in the git-push manpage, in which
"git push origin :::" was accidentally considered a newly-indented list,
and not a list item with "git push origin :" in it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-08-04 02:13:29 +00:00
|
|
|
`git fetch fd::17 master`::
|
2010-10-12 16:39:42 +00:00
|
|
|
Fetch master, using file descriptor #17 to communicate with
|
|
|
|
git-upload-pack.
|
|
|
|
|
docs: put listed example commands in backticks
Many examples of git command invocation are given in asciidoc listing
blocks, which makes them monospaced and avoids further interpretation of
special characters. Some manpages make a list of examples, like:
git foo::
Run git foo.
git foo -q::
Use the "-q" option.
to quickly show many variants. However, they can sometimes be hard to
read, because they are shown in a proportional-width font (so, for
example, seeing the difference between "-- foo" and "--foo" can be
difficult).
This patch puts all such examples into backticks, which gives the
equivalent formatting to a listing block (i.e., monospaced and without
character interpretation).
As a bonus, this also fixes an example in the git-push manpage, in which
"git push origin :::" was accidentally considered a newly-indented list,
and not a list item with "git push origin :" in it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-08-04 02:13:29 +00:00
|
|
|
`git fetch fd::17/foo master`::
|
2010-10-12 16:39:42 +00:00
|
|
|
Same as above.
|
|
|
|
|
docs: put listed example commands in backticks
Many examples of git command invocation are given in asciidoc listing
blocks, which makes them monospaced and avoids further interpretation of
special characters. Some manpages make a list of examples, like:
git foo::
Run git foo.
git foo -q::
Use the "-q" option.
to quickly show many variants. However, they can sometimes be hard to
read, because they are shown in a proportional-width font (so, for
example, seeing the difference between "-- foo" and "--foo" can be
difficult).
This patch puts all such examples into backticks, which gives the
equivalent formatting to a listing block (i.e., monospaced and without
character interpretation).
As a bonus, this also fixes an example in the git-push manpage, in which
"git push origin :::" was accidentally considered a newly-indented list,
and not a list item with "git push origin :" in it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-08-04 02:13:29 +00:00
|
|
|
`git push fd::7,8 master (as URL)`::
|
2010-10-12 16:39:42 +00:00
|
|
|
Push master, using file descriptor #7 to read data from
|
|
|
|
git-receive-pack and file descriptor #8 to write data to
|
2023-10-08 06:45:17 +00:00
|
|
|
the same service.
|
2010-10-12 16:39:42 +00:00
|
|
|
|
docs: put listed example commands in backticks
Many examples of git command invocation are given in asciidoc listing
blocks, which makes them monospaced and avoids further interpretation of
special characters. Some manpages make a list of examples, like:
git foo::
Run git foo.
git foo -q::
Use the "-q" option.
to quickly show many variants. However, they can sometimes be hard to
read, because they are shown in a proportional-width font (so, for
example, seeing the difference between "-- foo" and "--foo" can be
difficult).
This patch puts all such examples into backticks, which gives the
equivalent formatting to a listing block (i.e., monospaced and without
character interpretation).
As a bonus, this also fixes an example in the git-push manpage, in which
"git push origin :::" was accidentally considered a newly-indented list,
and not a list item with "git push origin :" in it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-08-04 02:13:29 +00:00
|
|
|
`git push fd::7,8/bar master`::
|
2010-10-12 16:39:42 +00:00
|
|
|
Same as above.
|
|
|
|
|
2014-11-11 20:17:07 +00:00
|
|
|
SEE ALSO
|
|
|
|
--------
|
2019-03-25 21:41:36 +00:00
|
|
|
linkgit:gitremote-helpers[7]
|
2014-11-11 20:17:07 +00:00
|
|
|
|
2010-10-12 16:39:42 +00:00
|
|
|
GIT
|
|
|
|
---
|
|
|
|
Part of the linkgit:git[1] suite
|