summaryrefslogtreecommitdiffstats
path: root/git-pack-refs.html
diff options
context:
space:
mode:
Diffstat (limited to 'git-pack-refs.html')
-rw-r--r--git-pack-refs.html37
1 files changed, 33 insertions, 4 deletions
diff --git a/git-pack-refs.html b/git-pack-refs.html
index 160e4e64a..851b6de27 100644
--- a/git-pack-refs.html
+++ b/git-pack-refs.html
@@ -749,7 +749,7 @@ git-pack-refs(1) Manual Page
<h2 id="_synopsis">SYNOPSIS</h2>
<div class="sectionbody">
<div class="verseblock">
-<pre class="content"><em>git pack-refs</em> [--all] [--no-prune]</pre>
+<pre class="content"><em>git pack-refs</em> [--all] [--no-prune] [--include &lt;pattern&gt;] [--exclude &lt;pattern&gt;]</pre>
<div class="attribution">
</div></div>
</div>
@@ -796,8 +796,9 @@ The command by default packs all tags and refs that are already
packed, and leaves other refs
alone. This is because branches are expected to be actively
developed and packing their tips does not help performance.
-This option causes branch tips to be packed as well. Useful for
-a repository with many branches of historical interests.
+This option causes all refs to be packed as well, with the exception
+of hidden refs, broken refs, and symbolic refs. Useful for a repository
+with many branches of historical interests.
</p>
</dd>
<dt class="hdlist1">
@@ -809,7 +810,35 @@ The command usually removes loose refs under <code>$GIT_DIR/refs</code>
hierarchy after packing them. This option tells it not to.
</p>
</dd>
+<dt class="hdlist1">
+--include &lt;pattern&gt;
+</dt>
+<dd>
+<p>
+Pack refs based on a <code>glob(7)</code> pattern. Repetitions of this option
+accumulate inclusion patterns. If a ref is both included in <code>--include</code> and
+<code>--exclude</code>, <code>--exclude</code> takes precedence. Using <code>--include</code> will preclude all
+tags from being included by default. Symbolic refs and broken refs will never
+be packed. When used with <code>--all</code>, it will be a noop. Use <code>--no-include</code> to clear
+and reset the list of patterns.
+</p>
+</dd>
+<dt class="hdlist1">
+--exclude &lt;pattern&gt;
+</dt>
+<dd>
+<p>
+Do not pack refs matching the given <code>glob(7)</code> pattern. Repetitions of this option
+accumulate exclusion patterns. Use <code>--no-exclude</code> to clear and reset the list of
+patterns. If a ref is already packed, including it with <code>--exclude</code> will not
+unpack it.
+</p>
+</dd>
</dl></div>
+<div class="paragraph"><p>When used with <code>--all</code>, pack only loose refs which do not match any of
+the provided <code>--exclude</code> patterns.</p></div>
+<div class="paragraph"><p>When used with <code>--include</code>, refs provided to <code>--include</code>, minus refs that are
+provided to <code>--exclude</code> will be packed.</p></div>
</div>
</div>
<div class="sect1">
@@ -831,7 +860,7 @@ exists" when it means "branch &lt;branch&gt; exists".</p></div>
<div id="footer">
<div id="footer-text">
Last updated
- 2020-03-11 07:02:33 JST
+ 2023-06-13 13:57:42 PDT
</div>
</div>
</body>