Skip to content

Commit b71f919

Browse files
OneDeuxTriSeiGogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9857273 commit b71f919

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/git-worktree.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SYNOPSIS
1010
--------
1111
[verse]
1212
'git worktree add' [-f] [--detach] [--checkout] [--lock [--reason <string>]]
13-
[-b <new-branch>] <path> [<commit-ish>]
13+
[(-b | -B) <new-branch>] <path> [<commit-ish>]
1414
'git worktree list' [-v | --porcelain [-z]]
1515
'git worktree lock' [--reason <string>] <worktree>
1616
'git worktree move' <worktree> <new-path>

builtin/worktree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#define BUILTIN_WORKTREE_ADD_USAGE \
2424
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>]")
2626
#define BUILTIN_WORKTREE_LIST_USAGE \
2727
N_("git worktree list [-v | --porcelain [-z]]")
2828
#define BUILTIN_WORKTREE_LOCK_USAGE \

0 commit comments

Comments
 (0)