summaryrefslogtreecommitdiffstats
path: root/git-gc.html
diff options
context:
space:
mode:
Diffstat (limited to 'git-gc.html')
-rw-r--r--git-gc.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/git-gc.html b/git-gc.html
index fb7930eaa..fb9460a8f 100644
--- a/git-gc.html
+++ b/git-gc.html
@@ -1098,6 +1098,25 @@ project most users will want to expire them sooner, which is why the
default is more aggressive than <code>gc.reflogExpire</code>.</p></div>
</dd>
<dt class="hdlist1">
+gc.recentObjectsHook
+</dt>
+<dd>
+<p>
+ When considering whether or not to remove an object (either when
+ generating a cruft pack or storing unreachable objects as
+ loose), use the shell to execute the specified command(s).
+ Interpret their output as object IDs which Git will consider as
+ "recent", regardless of their age. By treating their mtimes as
+ "now", any objects (and their descendants) mentioned in the
+ output will be kept regardless of their true age.
+</p>
+<div class="paragraph"><p>Output must contain exactly one hex object ID per line, and nothing
+else. Objects which cannot be found in the repository are ignored.
+Multiple hooks are supported, but all must exit successfully, else the
+operation (either generating a cruft pack or unpacking unreachable
+objects) will be halted.</p></div>
+</dd>
+<dt class="hdlist1">
gc.rerereResolved
</dt>
<dd>