Skip to content

Commit 7b722d9

Browse files
pcloudsgitster
authored andcommitted
git-worktree.txt: keep subcommand listing in alphabetical order
This is probably not the best order. But it makes it no-brainer to know where to insert new commands. At some point we might want to reorder at least the synopsis part again, grouping commonly use subcommands together. Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Reviewed-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 360af2d commit 7b722d9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Documentation/git-worktree.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ SYNOPSIS
1010
--------
1111
[verse]
1212
'git worktree add' [-f] [--detach] [--checkout] [-b <new-branch>] <path> [<branch>]
13-
'git worktree prune' [-n] [-v] [--expire <expire>]
1413
'git worktree list' [--porcelain]
14+
'git worktree prune' [-n] [-v] [--expire <expire>]
1515

1616
DESCRIPTION
1717
-----------
@@ -54,17 +54,17 @@ If `<branch>` is omitted and neither `-b` nor `-B` nor `--detached` used,
5454
then, as a convenience, a new branch based at HEAD is created automatically,
5555
as if `-b $(basename <path>)` was specified.
5656

57-
prune::
58-
59-
Prune working tree information in $GIT_DIR/worktrees.
60-
6157
list::
6258

6359
List details of each worktree. The main worktree is listed first, followed by
6460
each of the linked worktrees. The output details include if the worktree is
6561
bare, the revision currently checked out, and the branch currently checked out
6662
(or 'detached HEAD' if none).
6763

64+
prune::
65+
66+
Prune working tree information in $GIT_DIR/worktrees.
67+
6868
OPTIONS
6969
-------
7070

builtin/worktree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
static const char * const worktree_usage[] = {
1515
N_("git worktree add [<options>] <path> [<branch>]"),
16-
N_("git worktree prune [<options>]"),
1716
N_("git worktree list [<options>]"),
17+
N_("git worktree prune [<options>]"),
1818
NULL
1919
};
2020

0 commit comments

Comments
 (0)