]> git.ipfire.org Git - thirdparty/git.git/commitdiff
worktree add: include -B in usage docs
authorJacob Abel <jacobabel@nullpo.dev>
Wed, 17 May 2023 21:48:21 +0000 (21:48 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 May 2023 22:55:24 +0000 (15:55 -0700)
Document `-B` next to where `-b` is already documented to bring the
usage docs in line with other commands such as git checkout.

Signed-off-by: Jacob Abel <jacobabel@nullpo.dev>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-worktree.txt
builtin/worktree.c

index 063d6eeb99dd34c4b08f3c3dde9340146ce48756..b9c12779f1af1c9d215e399aba8392dd8ccd9cde 100644 (file)
@@ -10,7 +10,7 @@ SYNOPSIS
 --------
 [verse]
 'git worktree add' [-f] [--detach] [--checkout] [--lock [--reason <string>]]
-                  [-b <new-branch>] <path> [<commit-ish>]
+                  [(-b | -B) <new-branch>] <path> [<commit-ish>]
 'git worktree list' [-v | --porcelain [-z]]
 'git worktree lock' [--reason <string>] <worktree>
 'git worktree move' <worktree> <new-path>
index 39e9e5c9ce8239df42cfcf566d6e51d829db3a3d..d1b4b53f2c36b28b1b2a8db539b80f9914b9e965 100644 (file)
@@ -22,7 +22,7 @@
 
 #define BUILTIN_WORKTREE_ADD_USAGE \
        N_("git worktree add [-f] [--detach] [--checkout] [--lock [--reason <string>]]\n" \
-          "                 [-b <new-branch>] <path> [<commit-ish>]")
+          "                 [(-b | -B) <new-branch>] <path> [<commit-ish>]")
 #define BUILTIN_WORKTREE_LIST_USAGE \
        N_("git worktree list [-v | --porcelain [-z]]")
 #define BUILTIN_WORKTREE_LOCK_USAGE \