You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>This string config option provides a way to specify one of a few
6711
-
recommended schedules for background maintenance. This only affects
6712
-
which tasks are run during <code>git</code><code>maintenance</code><code>run</code><code>--schedule=X</code>
6713
-
commands, provided no <code>--task=</code><em><task></em> arguments are provided.
6714
-
Further, if a <code>maintenance.</code><em><task></em><code>.schedule</code> config value is set,
6715
-
then that value is used instead of the one provided by
6716
-
<code>maintenance.strategy</code>. The possible strategy strings are:</p>
6711
+
recommended strategies for repository maintenance. This affects
6712
+
which tasks are run during <code>git</code><code>maintenance</code><code>run</code>, provided no
6713
+
<code>--task=</code><em><task></em> arguments are provided. This setting impacts manual
6714
+
maintenance, auto-maintenance as well as scheduled maintenance. The
6715
+
tasks that run may be different depending on the maintenance type.</p>
6716
+
<divclass="paragraph">
6717
+
<p>The maintenance strategy can be further tweaked by setting
6718
+
<code>maintenance.</code><em><task></em><code>.enabled</code> and <code>maintenance.</code><em><task></em><code>.schedule</code>. If set, these
6719
+
values are used instead of the defaults provided by <code>maintenance.strategy</code>.</p>
6720
+
</div>
6721
+
<divclass="paragraph">
6722
+
<p>The possible strategies are:</p>
6723
+
</div>
6717
6724
<divclass="ulist">
6718
6725
<ul>
6719
6726
<li>
6720
-
<p><code>none</code>: This default setting implies no tasks are run at any schedule.</p>
6727
+
<p><code>none</code>: This strategy implies no tasks are run at all. This is the default
6728
+
strategy for scheduled maintenance.</p>
6729
+
</li>
6730
+
<li>
6731
+
<p><code>gc</code>: This strategy runs the <code>gc</code> task. This is the default strategy for
6732
+
manual maintenance.</p>
6733
+
</li>
6734
+
<li>
6735
+
<p><code>geometric</code>: This strategy performs geometric repacking of packfiles and
6736
+
keeps auxiliary data structures up-to-date. The strategy expires data in the
6737
+
reflog and removes worktrees that cannot be located anymore. When the
6738
+
geometric repacking strategy would decide to do an all-into-one repack, then
6739
+
the strategy generates a cruft pack for all unreachable objects. Objects that
6740
+
are already part of a cruft pack will be expired.</p>
6741
+
<divclass="paragraph">
6742
+
<p>This repacking strategy is a full replacement for the <code>gc</code> strategy and is
6743
+
recommended for large repositories.</p>
6744
+
</div>
6721
6745
</li>
6722
6746
<li>
6723
6747
<p><code>incremental</code>: This setting optimizes for performing small maintenance
6724
6748
activities that do not delete any data. This does not schedule the <code>gc</code>
6725
6749
task, but runs the <code>prefetch</code> and <code>commit-graph</code> tasks hourly, the
6726
6750
<code>loose-objects</code> and <code>incremental-repack</code> tasks daily, and the <code>pack-refs</code>
6727
-
task weekly.</p>
6751
+
task weekly. Manual repository maintenance uses the <code>gc</code> task.</p>
<p>This string config option provides a way to specify one of a few
1006
-
recommended schedules for background maintenance. This only affects
1007
-
which tasks are run during <code>git</code><code>maintenance</code><code>run</code><code>--schedule=X</code>
1008
-
commands, provided no <code>--task=</code><em><task></em> arguments are provided.
1009
-
Further, if a <code>maintenance.</code><em><task></em><code>.schedule</code> config value is set,
1010
-
then that value is used instead of the one provided by
1011
-
<code>maintenance.strategy</code>. The possible strategy strings are:</p>
1006
+
recommended strategies for repository maintenance. This affects
1007
+
which tasks are run during <code>git</code><code>maintenance</code><code>run</code>, provided no
1008
+
<code>--task=</code><em><task></em> arguments are provided. This setting impacts manual
1009
+
maintenance, auto-maintenance as well as scheduled maintenance. The
1010
+
tasks that run may be different depending on the maintenance type.</p>
1011
+
<divclass="paragraph">
1012
+
<p>The maintenance strategy can be further tweaked by setting
1013
+
<code>maintenance.</code><em><task></em><code>.enabled</code> and <code>maintenance.</code><em><task></em><code>.schedule</code>. If set, these
1014
+
values are used instead of the defaults provided by <code>maintenance.strategy</code>.</p>
1015
+
</div>
1016
+
<divclass="paragraph">
1017
+
<p>The possible strategies are:</p>
1018
+
</div>
1012
1019
<divclass="ulist">
1013
1020
<ul>
1014
1021
<li>
1015
-
<p><code>none</code>: This default setting implies no tasks are run at any schedule.</p>
1022
+
<p><code>none</code>: This strategy implies no tasks are run at all. This is the default
1023
+
strategy for scheduled maintenance.</p>
1024
+
</li>
1025
+
<li>
1026
+
<p><code>gc</code>: This strategy runs the <code>gc</code> task. This is the default strategy for
1027
+
manual maintenance.</p>
1028
+
</li>
1029
+
<li>
1030
+
<p><code>geometric</code>: This strategy performs geometric repacking of packfiles and
1031
+
keeps auxiliary data structures up-to-date. The strategy expires data in the
1032
+
reflog and removes worktrees that cannot be located anymore. When the
1033
+
geometric repacking strategy would decide to do an all-into-one repack, then
1034
+
the strategy generates a cruft pack for all unreachable objects. Objects that
1035
+
are already part of a cruft pack will be expired.</p>
1036
+
<divclass="paragraph">
1037
+
<p>This repacking strategy is a full replacement for the <code>gc</code> strategy and is
1038
+
recommended for large repositories.</p>
1039
+
</div>
1016
1040
</li>
1017
1041
<li>
1018
1042
<p><code>incremental</code>: This setting optimizes for performing small maintenance
1019
1043
activities that do not delete any data. This does not schedule the <code>gc</code>
1020
1044
task, but runs the <code>prefetch</code> and <code>commit-graph</code> tasks hourly, the
1021
1045
<code>loose-objects</code> and <code>incremental-repack</code> tasks daily, and the <code>pack-refs</code>
1022
-
task weekly.</p>
1046
+
task weekly. Manual repository maintenance uses the <code>gc</code> task.</p>
0 commit comments