Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > ba9fe7781d529b2e7b31d8489f5e0b8e > files > 28

gitolite-1.5.3-2.fc14.noarch.rpm

<h1>output of the "info" and "expand" commands</h1>

<p>Running "ssh git@server info" or "ssh git@server expand" gives you certain
output.  This doclet describes the output; you're welcome to help me make it
clearer :)</p>

<p>There are 3 columns of permissions (create, read, and write) in the output,
although the first column is often blank.</p>

<p>Here is the output of the 2 commands (info and expand):</p>

<h3>the "info" command</h3>

<p>Usage:</p>

<pre><code>ssh git@server info
ssh git@server info [list of users]
</code></pre>

<p>The "info" command shows you all the repos (and repo patterns) in the config
file that you have been given any kind of access to.  If you're an admin you
can append a list of users to see their permissions instead of your own.
(Side note: if you installed using easy-install that would probably be <code>ssh
gitolite info</code>, by the way).</p>

<p>The meaning of C, R, and W are self-explanatory, but they might sometimes be
prefixed by a symbol.  For example, <code>@R</code> means that <code>@all</code> users have
beengiven this access, and <code>#R</code> means that this user is a "superuser" (think
root's shell prompt) and so has access to <code>@all</code> repos.</p>

<h3>the "expand" command</h3>

<p>Usage:</p>

<pre><code>ssh git@server expand [optional pattern]
</code></pre>

<p>The "expand" command trawls through all the repositories on the server,
limiting to repos matching the pattern you provide (default is all repos
found).</p>

<p>For each repo found, it searches for it in the config -- either the actual
repo entry (when the repo is not a wildcard repo), or an entry for the
wildcard that matches it -- and reports permissions.  It also takes into
account extra permissions enabled by the <code>setperms</code> command (see
doc/4-wildcard-repositories.mkd).  It shows you the "creator" of the repo as
an additional column, defaulting to <code>&lt;gitolite&gt;</code> if it was not a wildcard
repo.</p>