blob: 2458eb986db35c7af4f356f87098b7c30c06384b (
plain)
1
2
3
4
5
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::<infd>[,<outfd>][/<anything>]" (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 <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).</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><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.</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">
© 2012–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>
|