summaryrefslogtreecommitdiffstats
path: root/git-daemon.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2010-11-06 01:01:59 +0000
committerJunio C Hamano <junio@kernel.org>2010-11-06 01:01:59 +0000
commit68cf15a825368c926443c26a6516947fca3c1d39 (patch)
treea587c9a51372746ddc3cdb08108bb14fb94a0488 /git-daemon.html
parent39c7a69d994a13cbd5594bf2f5e65a0f21cc9bb9 (diff)
downloadgit-htmldocs-68cf15a825368c926443c26a6516947fca3c1d39.tar.gz
Autogenerated HTML docs for v1.7.3.2-161-g3089c
Diffstat (limited to 'git-daemon.html')
-rw-r--r--git-daemon.html274
1 files changed, 185 insertions, 89 deletions
diff --git a/git-daemon.html b/git-daemon.html
index 440d80935..a41a1cc12 100644
--- a/git-daemon.html
+++ b/git-daemon.html
@@ -3,7 +3,8 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<meta name="generator" content="AsciiDoc 8.2.5" />
+<meta name="generator" content="AsciiDoc 8.4.5" />
+<title>git-daemon(1)</title>
<style type="text/css">
/* Debug borders */
p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
@@ -26,10 +27,12 @@ a:visited {
em {
font-style: italic;
+ color: navy;
}
strong {
font-weight: bold;
+ color: #083194;
}
tt {
@@ -71,6 +74,10 @@ p {
margin-bottom: 0.5em;
}
+ul, ol, li > p {
+ margin-top: 0;
+}
+
pre {
padding: 0;
margin: 0;
@@ -84,7 +91,7 @@ span#author {
}
span#email {
}
-span#revision {
+span#revnumber, span#revdate, span#revremark {
font-family: sans-serif;
}
@@ -104,11 +111,13 @@ div#footer-badges {
padding-bottom: 0.5em;
}
-div#preamble,
+div#preamble {
+ margin-top: 1.5em;
+ margin-bottom: 1.5em;
+}
div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
div.admonitionblock {
- margin-right: 10%;
margin-top: 1.5em;
margin-bottom: 1.5em;
}
@@ -123,6 +132,7 @@ div.content { /* Block element content. */
/* Block element titles. */
div.title, caption.title {
+ color: #527bbd;
font-family: sans-serif;
font-weight: bold;
text-align: left;
@@ -149,22 +159,33 @@ div.sidebarblock > div.content {
padding: 0.5em;
}
-div.listingblock {
- margin-right: 0%;
-}
div.listingblock > div.content {
border: 1px solid silver;
background: #f4f4f4;
padding: 0.5em;
}
-div.quoteblock > div.content {
+div.quoteblock {
padding-left: 2.0em;
+ margin-right: 10%;
}
-
-div.attribution {
+div.quoteblock > div.attribution {
+ padding-top: 0.5em;
text-align: right;
}
+
+div.verseblock {
+ padding-left: 2.0em;
+ margin-right: 10%;
+}
+div.verseblock > div.content {
+ white-space: pre;
+}
+div.verseblock > div.attribution {
+ padding-top: 0.75em;
+ text-align: left;
+}
+/* DEPRECATED: Pre version 8.2.7 verse style literal block. */
div.verseblock + div.attribution {
text-align: left;
}
@@ -187,13 +208,9 @@ div.exampleblock > div.content {
padding: 0.5em;
}
-div.verseblock div.content {
- white-space: pre;
-}
-
div.imageblock div.content { padding-left: 0; }
-div.imageblock img { border: 1px solid silver; }
span.image img { border-style: none; }
+a.image:visited { color: white; }
dl {
margin-top: 0.8em;
@@ -202,18 +219,38 @@ dl {
dt {
margin-top: 0.5em;
margin-bottom: 0;
- font-style: italic;
+ font-style: normal;
+ color: navy;
}
dd > *:first-child {
- margin-top: 0;
+ margin-top: 0.1em;
}
ul, ol {
list-style-position: outside;
}
-div.olist2 ol {
+ol.arabic {
+ list-style-type: decimal;
+}
+ol.loweralpha {
list-style-type: lower-alpha;
}
+ol.upperalpha {
+ list-style-type: upper-alpha;
+}
+ol.lowerroman {
+ list-style-type: lower-roman;
+}
+ol.upperroman {
+ list-style-type: upper-roman;
+}
+
+div.compact ul, div.compact ol,
+div.compact p, div.compact p,
+div.compact div, div.compact div {
+ margin-top: 0.1em;
+ margin-bottom: 0.1em;
+}
div.tableblock > table {
border: 3px solid #527bbd;
@@ -225,22 +262,53 @@ thead {
tfoot {
font-weight: bold;
}
+td > div.verse {
+ white-space: pre;
+}
+p.table {
+ margin-top: 0;
+}
+/* Because the table frame attribute is overriden by CSS in most browsers. */
+div.tableblock > table[frame="void"] {
+ border-style: none;
+}
+div.tableblock > table[frame="hsides"] {
+ border-left-style: none;
+ border-right-style: none;
+}
+div.tableblock > table[frame="vsides"] {
+ border-top-style: none;
+ border-bottom-style: none;
+}
+
-div.hlist {
+div.hdlist {
margin-top: 0.8em;
margin-bottom: 0.8em;
}
-div.hlist td {
- padding-bottom: 5px;
+div.hdlist tr {
+ padding-bottom: 15px;
}
-td.hlist1 {
+dt.hdlist1.strong, td.hdlist1.strong {
+ font-weight: bold;
+}
+td.hdlist1 {
vertical-align: top;
- font-style: italic;
+ font-style: normal;
padding-right: 0.8em;
+ color: navy;
}
-td.hlist2 {
+td.hdlist2 {
vertical-align: top;
}
+div.hdlist.compact tr {
+ margin: 0;
+ padding-bottom: 0;
+}
+
+.comment {
+ background: yellow;
+}
@media print {
div#footer-badges { display: none; }
@@ -271,7 +339,24 @@ div.toclevel4 {
margin-left: 6em;
font-size: 0.9em;
}
-include1::./stylesheets/xhtml11-manpage.css[]
+/* Overrides for manpage documents */
+h1 {
+ padding-top: 0.5em;
+ padding-bottom: 0.5em;
+ border-top: 2px solid silver;
+ border-bottom: 2px solid silver;
+}
+h2 {
+ border-style: none;
+}
+div.sectionbody {
+ margin-left: 5%;
+}
+
+@media print {
+ div#toc { display: none; }
+}
+
/* Workarounds for IE6's broken and incomplete CSS2. */
div.sidebar-content {
@@ -280,6 +365,7 @@ div.sidebar-content {
padding: 0.5em;
}
div.sidebar-title, div.image-title {
+ color: #527bbd;
font-family: sans-serif;
font-weight: bold;
margin-top: 0.0em;
@@ -292,8 +378,17 @@ div.listingblock div.content {
padding: 0.5em;
}
-div.quoteblock-content {
- padding-left: 2.0em;
+div.quoteblock-attribution {
+ padding-top: 0.5em;
+ text-align: right;
+}
+
+div.verseblock-content {
+ white-space: pre;
+}
+div.verseblock-attribution {
+ padding-top: 0.75em;
+ text-align: left;
}
div.exampleblock-content {
@@ -304,7 +399,6 @@ div.exampleblock-content {
/* IE6 sets dynamically generated links as visited. */
div#toc a:visited { color: blue; }
</style>
-<title>git-daemon(1)</title>
</head>
<body>
<div id="header">
@@ -318,10 +412,10 @@ git-daemon(1) Manual Page
</p>
</div>
</div>
-<h2>SYNOPSIS</h2>
+<h2 id="_synopsis">SYNOPSIS</h2>
<div class="sectionbody">
<div class="verseblock">
-<div class="content"><em>git daemon</em> [--verbose] [--syslog] [--export-all]
+<div class="verseblock-content"><em>git daemon</em> [--verbose] [--syslog] [--export-all]
[--timeout=&lt;n&gt;] [--init-timeout=&lt;n&gt;] [--max-connections=&lt;n&gt;]
[--strict-paths] [--base-path=&lt;path&gt;] [--base-path-relaxed]
[--user-path | --user-path=&lt;path&gt;]
@@ -330,40 +424,42 @@ git-daemon(1) Manual Page
[--enable=&lt;service&gt;] [--disable=&lt;service&gt;]
[--allow-override=&lt;service&gt;] [--forbid-override=&lt;service&gt;]
[--inetd | [--listen=&lt;host_or_ipaddr&gt;] [--port=&lt;n&gt;] [--user=&lt;user&gt; [--group=&lt;group&gt;]]
- [&lt;directory&gt;&#8230;]</div></div>
+ [&lt;directory&gt;&#8230;]</div>
+<div class="verseblock-attribution">
+</div></div>
</div>
<h2 id="_description">DESCRIPTION</h2>
<div class="sectionbody">
-<div class="para"><p>A really simple TCP git daemon that normally listens on port "DEFAULT_GIT_PORT"
+<div class="paragraph"><p>A really simple TCP git daemon that normally listens on port "DEFAULT_GIT_PORT"
aka 9418. It waits for a connection asking for a service, and will serve
that service if it is enabled.</p></div>
-<div class="para"><p>It verifies that the directory has the magic file "git-daemon-export-ok", and
-it will refuse to export any git directory that hasn't explicitly been marked
+<div class="paragraph"><p>It verifies that the directory has the magic file "git-daemon-export-ok", and
+it will refuse to export any git directory that hasn&#8217;t explicitly been marked
for export this way (unless the <em>--export-all</em> parameter is specified). If you
pass some directory paths as <em>git daemon</em> arguments, you can further restrict
the offers to a whitelist comprising of those.</p></div>
-<div class="para"><p>By default, only <tt>upload-pack</tt> service is enabled, which serves
+<div class="paragraph"><p>By default, only <tt>upload-pack</tt> service is enabled, which serves
<em>git fetch-pack</em> and <em>git ls-remote</em> clients, which are invoked
from <em>git fetch</em>, <em>git pull</em>, and <em>git clone</em>.</p></div>
-<div class="para"><p>This is ideally suited for read-only updates, i.e., pulling from
+<div class="paragraph"><p>This is ideally suited for read-only updates, i.e., pulling from
git repositories.</p></div>
-<div class="para"><p>An <tt>upload-archive</tt> also exists to serve <em>git archive</em>.</p></div>
+<div class="paragraph"><p>An <tt>upload-archive</tt> also exists to serve <em>git archive</em>.</p></div>
</div>
<h2 id="_options">OPTIONS</h2>
<div class="sectionbody">
-<div class="vlist"><dl>
-<dt>
+<div class="dlist"><dl>
+<dt class="hdlist1">
--strict-paths
</dt>
<dd>
<p>
- Match paths exactly (i.e. don't allow "/foo/repo" when the real path is
- "/foo/repo.git" or "/foo/repo/.git") and don't do user-relative paths.
+ Match paths exactly (i.e. don&#8217;t allow "/foo/repo" when the real path is
+ "/foo/repo.git" or "/foo/repo/.git") and don&#8217;t do user-relative paths.
<em>git daemon</em> will refuse to start when this option is enabled and no
whitelist is specified.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--base-path=&lt;path&gt;
</dt>
<dd>
@@ -375,7 +471,7 @@ git repositories.</p></div>
as <em>/srv/git/hello.git</em>.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--base-path-relaxed
</dt>
<dd>
@@ -386,7 +482,7 @@ git repositories.</p></div>
allowing the old paths.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--interpolated-path=&lt;pathtemplate&gt;
</dt>
<dd>
@@ -395,13 +491,13 @@ git repositories.</p></div>
used to dynamically construct alternate paths. The template
supports %H for the target hostname as supplied by the client but
converted to all lowercase, %CH for the canonical hostname,
- %IP for the server's IP address, %P for the port number,
+ %IP for the server&#8217;s IP address, %P for the port number,
and %D for the absolute path of the named repository.
After interpolation, the path is validated against the directory
whitelist.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--export-all
</dt>
<dd>
@@ -411,7 +507,7 @@ git repositories.</p></div>
do not have the <em>git-daemon-export-ok</em> file.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--inetd
</dt>
<dd>
@@ -420,7 +516,7 @@ git repositories.</p></div>
Incompatible with --port, --listen, --user and --group options.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--listen=&lt;host_or_ipaddr&gt;
</dt>
<dd>
@@ -433,7 +529,7 @@ git repositories.</p></div>
Incompatible with <em>--inetd</em> option.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--port=&lt;n&gt;
</dt>
<dd>
@@ -441,7 +537,7 @@ git repositories.</p></div>
Listen on an alternative port. Incompatible with <em>--inetd</em> option.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--init-timeout=&lt;n&gt;
</dt>
<dd>
@@ -451,17 +547,17 @@ git repositories.</p></div>
that should be basically immediate).
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--timeout=&lt;n&gt;
</dt>
<dd>
<p>
Timeout for specific client sub-requests. This includes the time
it takes for the server to process the sub-request and the time spent
- waiting for the next client's request.
+ waiting for the next client&#8217;s request.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--max-connections=&lt;n&gt;
</dt>
<dd>
@@ -470,7 +566,7 @@ git repositories.</p></div>
zero for no limit.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--syslog
</dt>
<dd>
@@ -479,10 +575,10 @@ git repositories.</p></div>
--verbose, thus by default only error conditions will be logged.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--user-path
</dt>
-<dt>
+<dt class="hdlist1">
--user-path=&lt;path&gt;
</dt>
<dd>
@@ -496,7 +592,7 @@ git repositories.</p></div>
the home directory of user <tt>alice</tt>.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--verbose
</dt>
<dd>
@@ -504,7 +600,7 @@ git repositories.</p></div>
Log details about the incoming connections and requested files.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--reuseaddr
</dt>
<dd>
@@ -514,7 +610,7 @@ git repositories.</p></div>
old connections to time out.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--detach
</dt>
<dd>
@@ -522,7 +618,7 @@ git repositories.</p></div>
Detach from the shell. Implies --syslog.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--pid-file=&lt;file&gt;
</dt>
<dd>
@@ -531,28 +627,28 @@ git repositories.</p></div>
is run under <tt>--inetd</tt>.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--user=&lt;user&gt;
</dt>
-<dt>
+<dt class="hdlist1">
--group=&lt;group&gt;
</dt>
<dd>
<p>
- Change daemon's uid and gid before entering the service loop.
+ Change daemon&#8217;s uid and gid before entering the service loop.
When only <tt>--user</tt> is given without <tt>--group</tt>, the
primary group ID for the user is used. The values of
the option are given to <tt>getpwnam(3)</tt> and <tt>getgrnam(3)</tt>
and numeric IDs are not supported.
</p>
-<div class="para"><p>Giving these options is an error when used with <tt>--inetd</tt>; use
+<div class="paragraph"><p>Giving these options is an error when used with <tt>--inetd</tt>; use
the facility of inet daemon to achieve the same before spawning
<em>git daemon</em> if needed.</p></div>
</dd>
-<dt>
+<dt class="hdlist1">
--enable=&lt;service&gt;
</dt>
-<dt>
+<dt class="hdlist1">
--disable=&lt;service&gt;
</dt>
<dd>
@@ -564,10 +660,10 @@ the facility of inet daemon to achieve the same before spawning
item.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
--allow-override=&lt;service&gt;
</dt>
-<dt>
+<dt class="hdlist1">
--forbid-override=&lt;service&gt;
</dt>
<dd>
@@ -577,7 +673,7 @@ the facility of inet daemon to achieve the same before spawning
are overridable.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
&lt;directory&gt;
</dt>
<dd>
@@ -591,14 +687,14 @@ the facility of inet daemon to achieve the same before spawning
</div>
<h2 id="_services">SERVICES</h2>
<div class="sectionbody">
-<div class="para"><p>These services can be globally enabled/disabled using the
+<div class="paragraph"><p>These services can be globally enabled/disabled using the
command line options of this command. If a finer-grained
control is desired (e.g. to allow <em>git archive</em> to be run
against only in a few selected repositories the daemon serves),
the per-repository configuration file can be used to enable or
disable them.</p></div>
-<div class="vlist"><dl>
-<dt>
+<div class="dlist"><dl>
+<dt class="hdlist1">
upload-pack
</dt>
<dd>
@@ -609,7 +705,7 @@ upload-pack
item to <tt>false</tt>.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
upload-archive
</dt>
<dd>
@@ -619,13 +715,13 @@ upload-archive
<tt>daemon.uploadarch</tt> configuration item to <tt>true</tt>.
</p>
</dd>
-<dt>
+<dt class="hdlist1">
receive-pack
</dt>
<dd>
<p>
This serves <em>git send-pack</em> clients, allowing anonymous
- push. It is disabled by default, as there is _no_
+ push. It is disabled by default, as there is <em>no</em>
authentication in the protocol (in other words, anybody
can push anything into the repository, including removal
of refs). This is solely meant for a closed LAN setting
@@ -638,8 +734,8 @@ receive-pack
</div>
<h2 id="_examples">EXAMPLES</h2>
<div class="sectionbody">
-<div class="vlist"><dl>
-<dt>
+<div class="dlist"><dl>
+<dt class="hdlist1">
We assume the following in /etc/services
</dt>
<dd>
@@ -649,7 +745,7 @@ We assume the following in /etc/services
git 9418/tcp # Git Version Control System</tt></pre>
</div></div>
</dd>
-<dt>
+<dt class="hdlist1">
<em>git daemon</em> as inetd server
</dt>
<dd>
@@ -666,7 +762,7 @@ git 9418/tcp # Git Version Control System</tt></pre>
/pub/foo /pub/bar</tt></pre>
</div></div>
</dd>
-<dt>
+<dt class="hdlist1">
<em>git daemon</em> as inetd server for virtual hosts
</dt>
<dd>
@@ -685,14 +781,14 @@ git 9418/tcp # Git Version Control System</tt></pre>
/pub/www.example.com/software
/software</tt></pre>
</div></div>
-<div class="para"><p>In this example, the root-level directory <tt>/pub</tt> will contain
+<div class="paragraph"><p>In this example, the root-level directory <tt>/pub</tt> will contain
a subdirectory for each virtual host name supported.
Further, both hosts advertise repositories simply as
<tt>git://www.example.com/software/repo.git</tt>. For pre-1.4.0
clients, a symlink from <tt>/software</tt> into the appropriate
default repository could be made as well.</p></div>
</dd>
-<dt>
+<dt class="hdlist1">
<em>git daemon</em> as regular daemon for virtual hosts
</dt>
<dd>
@@ -708,12 +804,12 @@ default repository could be made as well.</p></div>
/pub/192.168.1.200/software
/pub/10.10.220.23/software</tt></pre>
</div></div>
-<div class="para"><p>In this example, the root-level directory <tt>/pub</tt> will contain
+<div class="paragraph"><p>In this example, the root-level directory <tt>/pub</tt> will contain
a subdirectory for each virtual host IP address supported.
Repositories can still be accessed by hostname though, assuming
they correspond to these IP addresses.</p></div>
</dd>
-<dt>
+<dt class="hdlist1">
selectively enable/disable services per repository
</dt>
<dd>
@@ -734,27 +830,27 @@ selectively enable/disable services per repository
</div>
<h2 id="_environment">ENVIRONMENT</h2>
<div class="sectionbody">
-<div class="para"><p><em>git daemon</em> will set REMOTE_ADDR to the IP address of the client
+<div class="paragraph"><p><em>git daemon</em> will set REMOTE_ADDR to the IP address of the client
that connected to it, if the IP address is available. REMOTE_ADDR will
be available in the environment of hooks called when
services are performed.</p></div>
</div>
<h2 id="_author">Author</h2>
<div class="sectionbody">
-<div class="para"><p>Written by Linus Torvalds &lt;torvalds@osdl.org&gt;, YOSHIFUJI Hideaki
-&lt;yoshfuji@linux-ipv6.org&gt; and the git-list &lt;git@vger.kernel.org&gt;</p></div>
+<div class="paragraph"><p>Written by Linus Torvalds &lt;<a href="mailto:torvalds@osdl.org">torvalds@osdl.org</a>&gt;, YOSHIFUJI Hideaki
+&lt;<a href="mailto:yoshfuji@linux-ipv6.org">yoshfuji@linux-ipv6.org</a>&gt; and the git-list &lt;<a href="mailto:git@vger.kernel.org">git@vger.kernel.org</a>&gt;</p></div>
</div>
<h2 id="_documentation">Documentation</h2>
<div class="sectionbody">
-<div class="para"><p>Documentation by Junio C Hamano and the git-list &lt;git@vger.kernel.org&gt;.</p></div>
+<div class="paragraph"><p>Documentation by Junio C Hamano and the git-list &lt;<a href="mailto:git@vger.kernel.org">git@vger.kernel.org</a>&gt;.</p></div>
</div>
<h2 id="_git">GIT</h2>
<div class="sectionbody">
-<div class="para"><p>Part of the <a href="git.html">git(1)</a> suite</p></div>
+<div class="paragraph"><p>Part of the <a href="git.html">git(1)</a> suite</p></div>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2010-10-27 06:08:16 UTC
+Last updated 2010-11-06 00:41:57 UTC
</div>
</div>
</body>