summaryrefslogtreecommitdiffstats
path: root/git-shell.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-10-31 13:25:53 -0700
committerJunio C Hamano <gitster@pobox.com>2014-10-31 13:25:53 -0700
commitc14e6ad9a230ad90c84b7f620d87fbe49a2d0342 (patch)
tree120346dc383e3d1c4219fe8c533eb22cb6af2b55 /git-shell.html
parent2a4bcbc355496c8d83b1b9f8892c4cbe8f584158 (diff)
downloadgit-htmldocs-c14e6ad9a230ad90c84b7f620d87fbe49a2d0342.tar.gz
Autogenerated HTML docs for v2.2.0-rc0
Diffstat (limited to 'git-shell.html')
-rw-r--r--git-shell.html60
1 files changed, 29 insertions, 31 deletions
diff --git a/git-shell.html b/git-shell.html
index ccbf761e3..ebaac4349 100644
--- a/git-shell.html
+++ b/git-shell.html
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
-<meta name="generator" content="AsciiDoc 8.6.6" />
+<meta name="generator" content="AsciiDoc 8.6.9" />
<title>git-shell(1)</title>
<style type="text/css">
/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
@@ -87,10 +87,16 @@ ul, ol, li > p {
ul > li { color: #aaa; }
ul > li > * { color: black; }
-pre {
+.monospaced, code, pre {
+ font-family: "Courier New", Courier, monospace;
+ font-size: inherit;
+ color: navy;
padding: 0;
margin: 0;
}
+pre {
+ white-space: pre-wrap;
+}
#author {
color: #527bbd;
@@ -219,7 +225,7 @@ div.exampleblock > div.content {
}
div.imageblock div.content { padding-left: 0; }
-span.image img { border-style: none; }
+span.image img { border-style: none; vertical-align: text-bottom; }
a.image:visited { color: white; }
dl {
@@ -349,7 +355,7 @@ div.colist td img {
margin-bottom: 0.1em;
}
-div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
+div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
margin-top: 0;
margin-bottom: 0;
}
@@ -407,18 +413,14 @@ span.underline { text-decoration: underline; }
span.overline { text-decoration: overline; }
span.line-through { text-decoration: line-through; }
+div.unbreakable { page-break-inside: avoid; }
+
/*
* xhtml11 specific
*
* */
-tt {
- font-family: monospace;
- font-size: inherit;
- color: navy;
-}
-
div.tableblock {
margin-top: 1.0em;
margin-bottom: 1.5em;
@@ -452,12 +454,6 @@ div.tableblock > table[frame="vsides"] {
*
* */
-.monospaced {
- font-family: monospace;
- font-size: inherit;
- color: navy;
-}
-
table.tableblock {
margin-top: 1.0em;
margin-bottom: 1.5em;
@@ -537,6 +533,8 @@ body.manpage div.sectionbody {
@media print {
body.manpage div#toc { display: none; }
}
+
+
</style>
<script type="text/javascript">
/*<![CDATA[*/
@@ -581,7 +579,7 @@ toc: function (toclevels) {
function tocEntries(el, toclevels) {
var result = new Array;
- var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
+ var re = new RegExp('[hH]([1-'+(toclevels+1)+'])');
// Function that scans the DOM tree for header elements (the DOM2
// nodeIterator API would be a better technique but not supported by all
// browsers).
@@ -610,7 +608,7 @@ toc: function (toclevels) {
var i;
for (i = 0; i < toc.childNodes.length; i++) {
var entry = toc.childNodes[i];
- if (entry.nodeName == 'div'
+ if (entry.nodeName.toLowerCase() == 'div'
&& entry.getAttribute("class")
&& entry.getAttribute("class").match(/^toclevel/))
tocEntriesToRemove.push(entry);
@@ -656,7 +654,7 @@ footnotes: function () {
var entriesToRemove = [];
for (i = 0; i < noteholder.childNodes.length; i++) {
var entry = noteholder.childNodes[i];
- if (entry.nodeName == 'div' && entry.getAttribute("class") == "footnote")
+ if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")
entriesToRemove.push(entry);
}
for (i = 0; i < entriesToRemove.length; i++) {
@@ -751,8 +749,8 @@ git-shell(1) Manual Page
<div class="sectionbody">
<div class="verseblock">
<pre class="content"><em>chsh</em> -s $(command -v git-shell) &lt;user&gt;
-<em>git clone</em> &lt;user&gt;<tt>@localhost:/path/to/repo.git</tt>
-<em>ssh</em> &lt;user&gt;<tt>@localhost</tt></pre>
+<em>git clone</em> &lt;user&gt;<code>@localhost:/path/to/repo.git</code>
+<em>ssh</em> &lt;user&gt;<code>@localhost</code></pre>
<div class="attribution">
</div></div>
</div>
@@ -763,7 +761,7 @@ git-shell(1) Manual Page
<div class="paragraph"><p>This is a login shell for SSH accounts to provide restricted Git access.
It permits execution only of server-side Git commands implementing the
pull/push functionality, plus custom commands present in a subdirectory
-named <tt>git-shell-commands</tt> in the user&#8217;s home directory.</p></div>
+named <code>git-shell-commands</code> in the user&#8217;s home directory.</p></div>
</div>
</div>
<div class="sect1">
@@ -796,9 +794,9 @@ named <tt>git-shell-commands</tt> in the user&#8217;s home directory.</p></div>
</p>
</dd>
</dl></div>
-<div class="paragraph"><p>If a <tt>~/git-shell-commands</tt> directory is present, <em>git shell</em> will
+<div class="paragraph"><p>If a <code>~/git-shell-commands</code> directory is present, <em>git shell</em> will
also handle other, custom commands by running
-"<tt>git-shell-commands/&lt;command&gt; &lt;arguments&gt;</tt>" from the user&#8217;s home
+"<code>git-shell-commands/&lt;command&gt; &lt;arguments&gt;</code>" from the user&#8217;s home
directory.</p></div>
</div>
</div>
@@ -807,18 +805,18 @@ directory.</p></div>
<div class="sectionbody">
<div class="paragraph"><p>By default, the commands above can be executed only with the <em>-c</em>
option; the shell is not interactive.</p></div>
-<div class="paragraph"><p>If a <tt>~/git-shell-commands</tt> directory is present, <em>git shell</em>
-can also be run interactively (with no arguments). If a <tt>help</tt>
-command is present in the <tt>git-shell-commands</tt> directory, it is
+<div class="paragraph"><p>If a <code>~/git-shell-commands</code> directory is present, <em>git shell</em>
+can also be run interactively (with no arguments). If a <code>help</code>
+command is present in the <code>git-shell-commands</code> directory, it is
run to provide the user with an overview of allowed actions. Then a
"git&gt; " prompt is presented at which one can enter any of the
-commands from the <tt>git-shell-commands</tt> directory, or <tt>exit</tt> to close
+commands from the <code>git-shell-commands</code> directory, or <code>exit</code> to close
the connection.</p></div>
<div class="paragraph"><p>Generally this mode is used as an administrative interface to allow
users to list repositories they have access to, create, delete, or
rename repositories, or change repository descriptions and
permissions.</p></div>
-<div class="paragraph"><p>If a <tt>no-interactive-login</tt> command exists, then it is run and the
+<div class="paragraph"><p>If a <code>no-interactive-login</code> command exists, then it is run and the
interactive shell is aborted.</p></div>
</div>
</div>
@@ -828,7 +826,7 @@ interactive shell is aborted.</p></div>
<div class="paragraph"><p>To disable interactive logins, displaying a greeting instead:</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt>$ chsh -s /usr/bin/git-shell
+<pre><code>$ chsh -s /usr/bin/git-shell
$ mkdir $HOME/git-shell-commands
$ cat &gt;$HOME/git-shell-commands/no-interactive-login &lt;&lt;\EOF
#!/bin/sh
@@ -836,7 +834,7 @@ printf '%s\n' "Hi $USER! You've successfully authenticated, but I do not"
printf '%s\n' "provide interactive shell access."
exit 128
EOF
-$ chmod +x $HOME/git-shell-commands/no-interactive-login</tt></pre>
+$ chmod +x $HOME/git-shell-commands/no-interactive-login</code></pre>
</div></div>
</div>
</div>