summaryrefslogtreecommitdiff
path: root/devdocs/git/git-remote-fd.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/git/git-remote-fd.html
new repository
Diffstat (limited to 'devdocs/git/git-remote-fd.html')
-rw-r--r--devdocs/git/git-remote-fd.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/devdocs/git/git-remote-fd.html b/devdocs/git/git-remote-fd.html
new file mode 100644
index 00000000..2458eb98
--- /dev/null
+++ b/devdocs/git/git-remote-fd.html
@@ -0,0 +1,6 @@
+<h1>git-remote-fd</h1> <h2 id="_name">Name</h2> <div class="sectionbody"> <p>git-remote-fd - Reflect smart transport stream back to caller</p> </div> <h2 id="_synopsis">Synopsis</h2> <div class="sectionbody"> <p>"fd::&lt;infd&gt;[,&lt;outfd&gt;][/&lt;anything&gt;]" (as URL)</p> </div> <h2 id="_description">Description</h2> <div class="sectionbody"> <p>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.</p> <p>If only &lt;infd&gt; 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 &lt;infd&gt; and &lt;outfd&gt; are given, they are assumed to be pipes connected to a remote Git server (&lt;infd&gt; being the inbound pipe and &lt;outfd&gt; being the outbound pipe).</p> <p>It is assumed that any handshaking procedures have already been completed (such as sending service request for git://) before this helper is started.</p> <p>&lt;anything&gt; 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.</p> </div> <h2 id="_environment_variables">Environment variables</h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-remote-fd.txt-GITTRANSLOOPDEBUG"> GIT_TRANSLOOP_DEBUG </dt> <dd> <p>If set, prints debugging information about various reads/writes.</p> </dd> </dl> </div> </div> <h2 id="_examples">Examples</h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-remote-fd.txt-codegitfetchfd17mastercode"> <code>git fetch fd::17 master</code> </dt> <dd> <p>Fetch master, using file descriptor #17 to communicate with git-upload-pack.</p> </dd> <dt class="hdlist1" id="Documentation/git-remote-fd.txt-codegitfetchfd17foomastercode"> <code>git fetch fd::17/foo master</code> </dt> <dd> <p>Same as above.</p> </dd> <dt class="hdlist1" id="Documentation/git-remote-fd.txt-codegitpushfd78masterasURLcode"> <code>git push fd::7,8 master (as URL)</code> </dt> <dd> <p>Push master, using file descriptor #7 to read data from git-receive-pack and file descriptor #8 to write data to the same service.</p> </dd> <dt class="hdlist1" id="Documentation/git-remote-fd.txt-codegitpushfd78barmastercode"> <code>git push fd::7,8/bar master</code> </dt> <dd> <p>Same as above.</p> </dd> </dl> </div> </div> <h2 id="_see_also">See also</h2> <div class="sectionbody"> <p><a href="gitremote-helpers">gitremote-helpers[7]</a></p> </div><div class="_attribution">
+ <p class="_attribution-p">
+ &copy; 2012&ndash;2024 Scott Chacon and others<br>Licensed under the MIT License.<br>
+ <a href="https://git-scm.com/docs/git-remote-fd" class="_attribution-link">https://git-scm.com/docs/git-remote-fd</a>
+ </p>
+</div>