path: root/Documentation/git-remote-fd.txt
diff options
authorIlari Liusvaara <>2010-10-12 16:39:42 (GMT)
committerJunio C Hamano <>2010-10-13 23:09:26 (GMT)
commit3a9ed4bdee5032ecb9328aea51a752d69a2d966e (patch)
tree7594829f19d34cf1e011cb9cdff4a711a7350bcf /Documentation/git-remote-fd.txt
parent419f37db4d1e2fe3c394c869c5375e545b3e364d (diff)
This remote helper reflects raw smart remote transport stream back to the calling program. This is useful for example if some UI wants to handle ssh itself and not use hacks via GIT_SSH. Signed-off-by: Ilari Liusvaara <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-remote-fd.txt')
1 files changed, 59 insertions, 0 deletions
diff --git a/Documentation/git-remote-fd.txt b/Documentation/git-remote-fd.txt
new file mode 100644
index 0000000..1c1a179
--- /dev/null
+++ b/Documentation/git-remote-fd.txt
@@ -0,0 +1,59 @@
+git-remote-fd - Reflect smart transport stream back to caller
+"fd::<infd>[,<outfd>][/<anything>]" (as URL)
+This helper uses specified file descriptors to connect to remote git server.
+This is not meant for end users but for programs and scripts calling git
+fetch, push or archive.
+If only <infd> is given, it is assumed to be bidirectional socket connected
+to remote git server (git-upload-pack, git-receive-pack or
+git-upload-achive). If both <infd> and <outfd> are given, they are assumed
+to be pipes connected to remote git server (<infd> being the inbound pipe
+and <outfd> being the outbound pipe.
+It is assumed that any handshaking procedures have already been completed
+(such as sending service request for git://) before this helper is started.
+<anything> can be any string. It is ignored. It is meant for provoding
+information to user in the URL in case that URL is displayed in some
+ If set, prints debugging information about various reads/writes.
+git fetch fd::17 master::
+ Fetch master, using file descriptor #17 to communicate with
+ git-upload-pack.
+git fetch fd::17/foo master::
+ Same as above.
+git push fd::7,8 master (as URL)::
+ Push master, using file descriptor #7 to read data from
+ git-receive-pack and file descriptor #8 to write data to
+ same service.
+git push fd::7,8/bar master::
+ Same as above.
+Documentation by Ilari Liusvaara and the git list <>
+Part of the linkgit:git[1] suite