doc txt & -h consistency: make "worktree" consistent
Make the "worktree" -h output consistent with the *.txt version. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Oct 13, 2022 at 17:39 UTC
97f03a562840b3aacb790188567d631cc7e6e46f
1 file changed
+6
-5
builtin/worktree.c
+6
-5
@@ -16,17 +16,18 @@
16
#include "quote.h"
17
18
#define BUILTIN_WORKTREE_ADD_USAGE \
19
- N_("git worktree add [<options>] <path> [<commit-ish>]")
19
+ N_("git worktree add [-f] [--detach] [--checkout] [--lock [--reason <string>]]\n" \
20
+ " [-b <new-branch>] <path> [<commit-ish>]")
21
#define BUILTIN_WORKTREE_LIST_USAGE \
21
- N_("git worktree list [<options>]")
22
+ N_("git worktree list [-v | --porcelain [-z]]")
23
#define BUILTIN_WORKTREE_LOCK_USAGE \
23
- N_("git worktree lock [<options>] <path>")
24
+ N_("git worktree lock [--reason <string>] <worktree>")
25
#define BUILTIN_WORKTREE_MOVE_USAGE \
26
N_("git worktree move <worktree> <new-path>")
27
#define BUILTIN_WORKTREE_PRUNE_USAGE \
27
- N_("git worktree prune [<options>]")
28
+ N_("git worktree prune [-n] [-v] [--expire <expire>]")
29
#define BUILTIN_WORKTREE_REMOVE_USAGE \
29
- N_("git worktree remove [<options>] <worktree>")
30
+ N_("git worktree remove [-f] <worktree>")
31
#define BUILTIN_WORKTREE_REPAIR_USAGE \
32
N_("git worktree repair [<path>...]")
33
#define BUILTIN_WORKTREE_UNLOCK_USAGE \