summaryrefslogtreecommitdiff
path: root/devdocs/git/scalar.html
diff options
context:
space:
mode:
Diffstat (limited to 'devdocs/git/scalar.html')
-rw-r--r--devdocs/git/scalar.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/devdocs/git/scalar.html b/devdocs/git/scalar.html
new file mode 100644
index 00000000..5b1f2102
--- /dev/null
+++ b/devdocs/git/scalar.html
@@ -0,0 +1,23 @@
+<h1>scalar</h1> <h2 id="_name">Name</h2> <div class="sectionbody"> <p>scalar - A tool for managing large Git repositories</p> </div> <h2 id="_synopsis">Synopsis</h2> <div class="sectionbody"> <div class="verseblock"> <pre class="content">scalar clone [--single-branch] [--branch &lt;main-branch&gt;] [--full-clone]
+ [--[no-]src] &lt;url&gt; [&lt;enlistment&gt;]
+scalar list
+scalar register [&lt;enlistment&gt;]
+scalar unregister [&lt;enlistment&gt;]
+scalar run ( all | config | commit-graph | fetch | loose-objects | pack-files ) [&lt;enlistment&gt;]
+scalar reconfigure [ --all | &lt;enlistment&gt; ]
+scalar diagnose [&lt;enlistment&gt;]
+scalar delete &lt;enlistment&gt;</pre> </div> </div> <h2 id="_description">Description</h2> <div class="sectionbody"> <p>Scalar is a repository management tool that optimizes Git for use in large repositories. Scalar improves performance by configuring advanced Git settings, maintaining repositories in the background, and helping to reduce data sent across the network.</p> <p>An important Scalar concept is the enlistment: this is the top-level directory of the project. It usually contains the subdirectory <code>src/</code> which is a Git worktree. This encourages the separation between tracked files (inside <code>src/</code>) and untracked files, such as build artifacts (outside <code>src/</code>). When registering an existing Git worktree with Scalar whose name is not <code>src</code>, the enlistment will be identical to the worktree.</p> <p>The <code>scalar</code> command implements various subcommands, and different options depending on the subcommand. With the exception of <code>clone</code>, <code>list</code> and <code>reconfigure --all</code>, all subcommands expect to be run in an enlistment.</p> <p>The following options can be specified <code>before</code> the subcommand:</p> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/scalar.txt--Cltdirectorygt"> -C &lt;directory&gt; </dt> <dd> <p>Before running the subcommand, change the working directory. This option imitates the same option of <a href="git">git[1]</a>.</p> </dd> <dt class="hdlist1" id="Documentation/scalar.txt--cltkeygtltvaluegt"> -c &lt;key&gt;=&lt;value&gt; </dt> <dd> <p>For the duration of running the specified subcommand, configure this setting. This option imitates the same option of <a href="git">git[1]</a>.</p> </dd> </dl> </div> </div> <h2 id="_commands">Commands</h2> <div class="sectionbody"> <div class="sect2"> <h3 id="_clone">
+Clone</h3> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/scalar.txt-cloneltoptionsgtlturlgtltenlistmentgt"> clone [&lt;options&gt;] &lt;url&gt; [&lt;enlistment&gt;] </dt> <dd> <p>Clones the specified repository, similar to <a href="git-clone">git-clone[1]</a>. By default, only commit and tree objects are cloned. Once finished, the worktree is located at <code>&lt;enlistment&gt;/src</code>.</p> <p>The sparse-checkout feature is enabled (except when run with <code>--full-clone</code>) and the only files present are those in the top-level directory. Use <code>git sparse-checkout set</code> to expand the set of directories you want to see, or <code>git sparse-checkout disable</code> to expand to all files (see <a href="git-sparse-checkout">git-sparse-checkout[1]</a> for more details). You can explore the subdirectories outside your sparse-checkout by using <code>git ls-tree
+HEAD[:&lt;directory&gt;]</code>.</p> </dd> <dt class="hdlist1" id="Documentation/scalar.txt--bltnamegt"> -b &lt;name&gt; </dt> <dt class="hdlist1" id="Documentation/scalar.txt---branchltnamegt"> --branch &lt;name&gt; </dt> <dd> <p>Instead of checking out the branch pointed to by the cloned repository’s HEAD, check out the <code>&lt;name&gt;</code> branch instead.</p> </dd> <dt class="hdlist1" id="Documentation/scalar.txt---no-single-branch"> --[no-]single-branch </dt> <dd> <p>Clone only the history leading to the tip of a single branch, either specified by the <code>--branch</code> option or the primary branch remote’s <code>HEAD</code> points at.</p> <p>Further fetches into the resulting repository will only update the remote-tracking branch for the branch this option was used for the initial cloning. If the HEAD at the remote did not point at any branch when <code>--single-branch</code> clone was made, no remote-tracking branch is created.</p> </dd> <dt class="hdlist1" id="Documentation/scalar.txt---no-src"> --[no-]src </dt> <dd> <p>By default, <code>scalar clone</code> places the cloned repository within a <code>&lt;entlistment&gt;/src</code> directory. Use <code>--no-src</code> to place the cloned repository directly in the <code>&lt;enlistment&gt;</code> directory.</p> </dd> <dt class="hdlist1" id="Documentation/scalar.txt---no-full-clone"> --[no-]full-clone </dt> <dd> <p>A sparse-checkout is initialized by default. This behavior can be turned off via <code>--full-clone</code>.</p> </dd> </dl> </div> </div> <div class="sect2"> <h3 id="_list">
+List</h3> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/scalar.txt-list"> list </dt> <dd> <p>List enlistments that are currently registered by Scalar. This subcommand does not need to be run inside an enlistment.</p> </dd> </dl> </div> </div> <div class="sect2"> <h3 id="_register">
+Register</h3> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/scalar.txt-registerltenlistmentgt"> register [&lt;enlistment&gt;] </dt> <dd> <p>Adds the enlistment’s repository to the list of registered repositories and starts background maintenance. If <code>&lt;enlistment&gt;</code> is not provided, then the enlistment associated with the current working directory is registered.</p> <p>Note: when this subcommand is called in a worktree that is called <code>src/</code>, its parent directory is considered to be the Scalar enlistment. If the worktree is <code>not</code> called <code>src/</code>, it itself will be considered to be the Scalar enlistment.</p> </dd> </dl> </div> </div> <div class="sect2"> <h3 id="_unregister">
+Unregister</h3> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/scalar.txt-unregisterltenlistmentgt"> unregister [&lt;enlistment&gt;] </dt> <dd> <p>Remove the specified repository from the list of repositories registered with Scalar and stop the scheduled background maintenance.</p> </dd> </dl> </div> </div> <div class="sect2"> <h3 id="_run">
+Run</h3> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/scalar.txt-scalarrunallconfigcommit-graphfetchloose-objectspack-filesltenlistmentgt"> scalar run ( all | config | commit-graph | fetch | loose-objects | pack-files ) [&lt;enlistment&gt;] </dt> <dd> <p>Run the given maintenance task (or all tasks, if <code>all</code> was specified). Except for <code>all</code> and <code>config</code>, this subcommand simply hands off to <a href="git-maintenance">git-maintenance[1]</a> (mapping <code>fetch</code> to <code>prefetch</code> and <code>pack-files</code> to <code>incremental-repack</code>).</p> <p>These tasks are run automatically as part of the scheduled maintenance, as soon as the repository is registered with Scalar. It should therefore not be necessary to run this subcommand manually.</p> <p>The <code>config</code> task is specific to Scalar and configures all those opinionated default settings that make Git work more efficiently with large repositories. As this task is run as part of <code>scalar clone</code> automatically, explicit invocations of this task are rarely needed.</p> </dd> </dl> </div> </div> <div class="sect2"> <h3 id="_reconfigure">
+Reconfigure</h3> <p>After a Scalar upgrade, or when the configuration of a Scalar enlistment was somehow corrupted or changed by mistake, this subcommand allows to reconfigure the enlistment.</p> <p>With the <code>--all</code> option, all enlistments currently registered with Scalar will be reconfigured. Use this option after each Scalar upgrade.</p> </div> <div class="sect2"> <h3 id="_diagnose">
+Diagnose</h3> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/scalar.txt-diagnoseltenlistmentgt"> diagnose [&lt;enlistment&gt;] </dt> <dd> <p>When reporting issues with Scalar, it is often helpful to provide the information gathered by this command, including logs and certain statistics describing the data shape of the current enlistment.</p> <p>The output of this command is a <code>.zip</code> file that is written into a directory adjacent to the worktree in the <code>src</code> directory.</p> </dd> </dl> </div> </div> <div class="sect2"> <h3 id="_delete">
+Delete</h3> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/scalar.txt-deleteltenlistmentgt"> delete &lt;enlistment&gt; </dt> <dd> <p>This subcommand lets you delete an existing Scalar enlistment from your local file system, unregistering the repository.</p> </dd> </dl> </div> </div> </div> <h2 id="_see_also">See also</h2> <div class="sectionbody"> <p><a href="git-clone">git-clone[1]</a>, <a href="git-maintenance">git-maintenance[1]</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/scalar" class="_attribution-link">https://git-scm.com/docs/scalar</a>
+ </p>
+</div>