]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc txt & -h consistency: make "worktree" consistent
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 13 Oct 2022 15:39:26 +0000 (17:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Oct 2022 16:32:58 +0000 (09:32 -0700)
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>
builtin/worktree.c

index ba6846c378864087ae6894dfd73385bd8956fcce..4a24d53be15c3a74d6632c68ccacb813c8aa989b 100644 (file)
 #include "quote.h"
 
 #define BUILTIN_WORKTREE_ADD_USAGE \
-       N_("git worktree add [<options>] <path> [<commit-ish>]")
+       N_("git worktree add [-f] [--detach] [--checkout] [--lock [--reason <string>]]\n" \
+          "                 [-b <new-branch>] <path> [<commit-ish>]")
 #define BUILTIN_WORKTREE_LIST_USAGE \
-       N_("git worktree list [<options>]")
+       N_("git worktree list [-v | --porcelain [-z]]")
 #define BUILTIN_WORKTREE_LOCK_USAGE \
-       N_("git worktree lock [<options>] <path>")
+       N_("git worktree lock [--reason <string>] <worktree>")
 #define BUILTIN_WORKTREE_MOVE_USAGE \
        N_("git worktree move <worktree> <new-path>")
 #define BUILTIN_WORKTREE_PRUNE_USAGE \
-       N_("git worktree prune [<options>]")
+       N_("git worktree prune [-n] [-v] [--expire <expire>]")
 #define BUILTIN_WORKTREE_REMOVE_USAGE \
-       N_("git worktree remove [<options>] <worktree>")
+       N_("git worktree remove [-f] <worktree>")
 #define BUILTIN_WORKTREE_REPAIR_USAGE \
        N_("git worktree repair [<path>...]")
 #define BUILTIN_WORKTREE_UNLOCK_USAGE \