git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] maintenance: fix synopsis in documentation
@ 2022-03-15 17:41 Derrick Stolee via GitGitGadget
  2022-03-15 17:57 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Derrick Stolee via GitGitGadget @ 2022-03-15 17:41 UTC (permalink / raw)
  To: git; +Cc: gitster, shaoxuan.yuan02, Derrick Stolee, Derrick Stolee

From: Derrick Stolee <derrickstolee@github.com>

The synopsis for 'git maintenance' did not include the commands other
than the 'run' command. Update this to include the others. The 'start'
command is the only one of these that parses additional options, and
then only the --scheduler option.

Also move the 'register' command down after 'stop' and before
'unregister' for a logical grouping of the commands instead of an
alphabetical one. The diff makes it look as three other commands are
moved up.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
---
    maintenance: fix synopsis in documentation
    
    This is a quick fix for an issue I noticed during another review [1].
    
    Thanks, -Stolee
    
    [1]
    https://lore.kernel.org/git/dd9413da-1b8c-2adf-c471-e5fd4230375c@github.com/

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1178%2Fderrickstolee%2Fmaintenance-docs-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1178/derrickstolee/maintenance-docs-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1178

 Documentation/git-maintenance.txt | 38 ++++++++++++++++---------------
 1 file changed, 20 insertions(+), 18 deletions(-)

diff --git a/Documentation/git-maintenance.txt b/Documentation/git-maintenance.txt
index e2cfb68ab57..e56bad28c65 100644
--- a/Documentation/git-maintenance.txt
+++ b/Documentation/git-maintenance.txt
@@ -10,6 +10,8 @@ SYNOPSIS
 --------
 [verse]
 'git maintenance' run [<options>]
+'git maintenance' start [--scheduler=<scheduler>]
+'git maintenance' (stop|register|unregister)
 
 
 DESCRIPTION
@@ -29,6 +31,24 @@ Git repository.
 SUBCOMMANDS
 -----------
 
+run::
+	Run one or more maintenance tasks. If one or more `--task` options
+	are specified, then those tasks are run in that order. Otherwise,
+	the tasks are determined by which `maintenance.<task>.enabled`
+	config options are true. By default, only `maintenance.gc.enabled`
+	is true.
+
+start::
+	Start running maintenance on the current repository. This performs
+	the same config updates as the `register` subcommand, then updates
+	the background scheduler to run `git maintenance run --scheduled`
+	on an hourly basis.
+
+stop::
+	Halt the background maintenance schedule. The current repository
+	is not removed from the list of maintained repositories, in case
+	the background maintenance is restarted later.
+
 register::
 	Initialize Git config values so any scheduled maintenance will
 	start running on this repository. This adds the repository to the
@@ -55,24 +75,6 @@ task:
 setting `maintenance.auto = false` in the current repository. This config
 setting will remain after a `git maintenance unregister` command.
 
-run::
-	Run one or more maintenance tasks. If one or more `--task` options
-	are specified, then those tasks are run in that order. Otherwise,
-	the tasks are determined by which `maintenance.<task>.enabled`
-	config options are true. By default, only `maintenance.gc.enabled`
-	is true.
-
-start::
-	Start running maintenance on the current repository. This performs
-	the same config updates as the `register` subcommand, then updates
-	the background scheduler to run `git maintenance run --scheduled`
-	on an hourly basis.
-
-stop::
-	Halt the background maintenance schedule. The current repository
-	is not removed from the list of maintained repositories, in case
-	the background maintenance is restarted later.
-
 unregister::
 	Remove the current repository from background maintenance. This
 	only removes the repository from the configured list. It does not

base-commit: 1a4874565fa3b6668042216189551b98b4dc0b1b
-- 
gitgitgadget

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] maintenance: fix synopsis in documentation
  2022-03-15 17:41 [PATCH] maintenance: fix synopsis in documentation Derrick Stolee via GitGitGadget
@ 2022-03-15 17:57 ` Junio C Hamano
  2022-03-16  5:51   ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2022-03-15 17:57 UTC (permalink / raw)
  To: Derrick Stolee via GitGitGadget; +Cc: git, shaoxuan.yuan02, Derrick Stolee

"Derrick Stolee via GitGitGadget" <gitgitgadget@gmail.com> writes:

> From: Derrick Stolee <derrickstolee@github.com>
>
> The synopsis for 'git maintenance' did not include the commands other
> than the 'run' command. Update this to include the others. The 'start'
> command is the only one of these that parses additional options, and
> then only the --scheduler option.
>
> Also move the 'register' command down after 'stop' and before
> 'unregister' for a logical grouping of the commands instead of an
> alphabetical one. The diff makes it look as three other commands are
> moved up.

Will queue.  Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] maintenance: fix synopsis in documentation
  2022-03-15 17:57 ` Junio C Hamano
@ 2022-03-16  5:51   ` Junio C Hamano
  0 siblings, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2022-03-16  5:51 UTC (permalink / raw)
  To: Derrick Stolee via GitGitGadget; +Cc: git, shaoxuan.yuan02, Derrick Stolee

"Derrick Stolee via GitGitGadget" <gitgitgadget@gmail.com> writes:

> From: Derrick Stolee <derrickstolee@github.com>
>
> The synopsis for 'git maintenance' did not include the commands other
> than the 'run' command. Update this to include the others. The 'start'
> command is the only one of these that parses additional options, and
> then only the --scheduler option.
>
> Also move the 'register' command down after 'stop' and before
> 'unregister' for a logical grouping of the commands instead of an
> alphabetical one. The diff makes it look as three other commands are
> moved up.

Will queue.  Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-16  5:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-15 17:41 [PATCH] maintenance: fix synopsis in documentation Derrick Stolee via GitGitGadget
2022-03-15 17:57 ` Junio C Hamano
2022-03-16  5:51   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).