Skip to content

Commit f8072aa

Browse files
committed
Autogenerated HTML docs for v2.52.0-51-gdebbc
1 parent f270656 commit f8072aa

File tree

3 files changed

+50
-3
lines changed

3 files changed

+50
-3
lines changed

RelNotes/2.53.0.adoc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Git v2.53 Release Notes
22
=======================
33

4+
UI, Workflows & Features
5+
------------------------
6+
7+
* "git maintenance" command learned "is-needed" subcommand to tell if
8+
it is necessary to perform various maintenance tasks.
9+
10+
411
Performance, Internal Implementation, Development Support etc.
512
--------------------------------------------------------------
613
@@ -10,3 +17,15 @@ Performance, Internal Implementation, Development Support etc.
1017
* Some ref backend storage can hold not just the object name of an
1118
annotated tag, but the object name of the object the tag points at.
1219
The code to handle this information has been streamlined.
20+
21+
* As "git diff --quiet" only cares about the existence of any
22+
changes, disable rename/copy detection to skip more expensive
23+
processing whose result will be discarded anyway.
24+
25+
26+
Fixes since v2.51
27+
-----------------
28+
29+
* Ever since we added whitespace rules for this project, we misspelt
30+
an entry, which has been corrected.
31+
(merge 358e94dc70 jc/gitattributes-whitespace-no-indent-fix later to maint).

git-maintenance.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ SYNOPSIS
1212
'git maintenance' run [<options>]
1313
'git maintenance' start [--scheduler=<scheduler>]
1414
'git maintenance' (stop|register|unregister) [<options>]
15+
'git maintenance' is-needed [<options>]
1516

1617

1718
DESCRIPTION
@@ -84,6 +85,16 @@ The `unregister` subcommand will report an error if the current repository
8485
is not already registered. Use the `--force` option to return success even
8586
when the current repository is not registered.
8687

88+
is-needed::
89+
Check whether maintenance needs to be run without actually running it.
90+
Exits with a 0 status code if maintenance needs to be run, 1 otherwise.
91+
Ideally used with the '--auto' flag.
92+
+
93+
If one or more `--task` options are specified, then those tasks are checked
94+
in that order. Otherwise, the tasks are determined by which
95+
`maintenance.<task>.enabled` config options are true. By default, only
96+
`maintenance.gc.enabled` is true.
97+
8798
TASKS
8899
-----
89100

@@ -183,6 +194,8 @@ OPTIONS
183194
in the `gc.auto` config setting, or when the number of pack-files
184195
exceeds the `gc.autoPackLimit` config setting. Not compatible with
185196
the `--schedule` option.
197+
When combined with the `is-needed` subcommand, check if the required
198+
thresholds are met without actually running maintenance.
186199

187200
--schedule::
188201
When combined with the `run` subcommand, run maintenance tasks

git-maintenance.html

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,8 @@ <h2 id="_synopsis">SYNOPSIS</h2>
454454
<div class="verseblock">
455455
<pre class="content"><em>git maintenance</em> run [&lt;options&gt;]
456456
<em>git maintenance</em> start [--scheduler=&lt;scheduler&gt;]
457-
<em>git maintenance</em> (stop|register|unregister) [&lt;options&gt;]</pre>
457+
<em>git maintenance</em> (stop|register|unregister) [&lt;options&gt;]
458+
<em>git maintenance</em> is-needed [&lt;options&gt;]</pre>
458459
</div>
459460
</div>
460461
</div>
@@ -559,6 +560,18 @@ <h2 id="_subcommands">SUBCOMMANDS</h2>
559560
when the current repository is not registered.</p>
560561
</div>
561562
</dd>
563+
<dt class="hdlist1">is-needed</dt>
564+
<dd>
565+
<p>Check whether maintenance needs to be run without actually running it.
566+
Exits with a 0 status code if maintenance needs to be run, 1 otherwise.
567+
Ideally used with the <em>--auto</em> flag.</p>
568+
<div class="paragraph">
569+
<p>If one or more <code>--task</code> options are specified, then those tasks are checked
570+
in that order. Otherwise, the tasks are determined by which
571+
<code>maintenance.</code><em>&lt;task&gt;</em><code>.enabled</code> config options are true. By default, only
572+
<code>maintenance.gc.enabled</code> is true.</p>
573+
</div>
574+
</dd>
562575
</dl>
563576
</div>
564577
</div>
@@ -684,7 +697,9 @@ <h2 id="_options">OPTIONS</h2>
684697
runs when the number of loose objects exceeds the number stored
685698
in the <code>gc.auto</code> config setting, or when the number of pack-files
686699
exceeds the <code>gc.autoPackLimit</code> config setting. Not compatible with
687-
the <code>--schedule</code> option.</p>
700+
the <code>--schedule</code> option.
701+
When combined with the <code>is-needed</code> subcommand, check if the required
702+
thresholds are met without actually running maintenance.</p>
688703
</dd>
689704
<dt class="hdlist1">--schedule</dt>
690705
<dd>
@@ -1161,7 +1176,7 @@ <h2 id="_git">GIT</h2>
11611176
</div>
11621177
<div id="footer">
11631178
<div id="footer-text">
1164-
Last updated 2025-06-20 18:10:42 -0700
1179+
Last updated 2025-11-21 14:01:32 -0800
11651180
</div>
11661181
</div>
11671182
</body>

0 commit comments

Comments
 (0)