worktree add: include -B in usage docs

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>

Jacob Abel committed May 17, 2023 at 21:48 UTC b71f919dda784fdf90901f1a2d848ccd22a49eb0
2 files changed +2 -2
Documentation/git-worktree.txt
+1 -1
@@ -10,7 +10,7 @@ SYNOPSIS
10 --------
11 [verse]
12 'git worktree add' [-f] [--detach] [--checkout] [--lock [--reason <string>]]
13 - [-b <new-branch>] <path> [<commit-ish>]
13 + [(-b | -B) <new-branch>] <path> [<commit-ish>]
14 'git worktree list' [-v | --porcelain [-z]]
15 'git worktree lock' [--reason <string>] <worktree>
16 'git worktree move' <worktree> <new-path>
builtin/worktree.c
+1 -1
@@ -22,7 +22,7 @@
22
23 #define BUILTIN_WORKTREE_ADD_USAGE \
24 N_("git worktree add [-f] [--detach] [--checkout] [--lock [--reason <string>]]\n" \
25 - " [-b <new-branch>] <path> [<commit-ish>]")
25 + " [(-b | -B) <new-branch>] <path> [<commit-ish>]")
26 #define BUILTIN_WORKTREE_LIST_USAGE \
27 N_("git worktree list [-v | --porcelain [-z]]")
28 #define BUILTIN_WORKTREE_LOCK_USAGE \