summaryrefslogtreecommitdiffstats
path: root/git-repack.html
diff options
context:
space:
mode:
Diffstat (limited to 'git-repack.html')
-rw-r--r--git-repack.html35
1 files changed, 34 insertions, 1 deletions
diff --git a/git-repack.html b/git-repack.html
index 00276b4db..a8e667ab6 100644
--- a/git-repack.html
+++ b/git-repack.html
@@ -963,6 +963,39 @@ depth is 4095.</p></div>
</p>
</dd>
<dt class="hdlist1">
+--filter=&lt;filter-spec&gt;
+</dt>
+<dd>
+<p>
+ Remove objects matching the filter specification from the
+ resulting packfile and put them into a separate packfile. Note
+ that objects used in the working directory are not filtered
+ out. So for the split to fully work, it&#8217;s best to perform it
+ in a bare repo and to use the <code>-a</code> and <code>-d</code> options along with
+ this option. Also <code>--no-write-bitmap-index</code> (or the
+ <code>repack.writebitmaps</code> config option set to <code>false</code>) should be
+ used otherwise writing bitmap index will fail, as it supposes
+ a single packfile containing all the objects. See
+ <a href="git-rev-list.html">git-rev-list(1)</a> for valid <code>&lt;filter-spec&gt;</code> forms.
+</p>
+</dd>
+<dt class="hdlist1">
+--filter-to=&lt;dir&gt;
+</dt>
+<dd>
+<p>
+ Write the pack containing filtered out objects to the
+ directory <code>&lt;dir&gt;</code>. Only useful with <code>--filter</code>. This can be
+ used for putting the pack on a separate object directory that
+ is accessed through the Git alternates mechanism. <strong>WARNING:</strong>
+ If the packfile containing the filtered out objects is not
+ accessible, the repo can become corrupt as it might not be
+ possible to access the objects in that packfile. See the
+ <code>objects</code> and <code>objects/info/alternates</code> sections of
+ <a href="gitrepository-layout.html">gitrepository-layout(5)</a>.
+</p>
+</dd>
+<dt class="hdlist1">
-b
</dt>
<dt class="hdlist1">
@@ -1123,7 +1156,7 @@ attribute <code>delta</code> set to false.</p></div>
<div id="footer">
<div id="footer-text">
Last updated
- 2022-11-20 22:53:16 PST
+ 2023-10-10 11:55:22 PDT
</div>
</div>
</body>