Skip to content

Commit ae9f274

Browse files
CptFoobargitster
authored andcommitted
worktree: usage: denote <branch> as optional with 'add'
Although 1eb07d8 (worktree: add: auto-vivify new branch when <branch> is omitted, 2015-07-06) updated the documentation when <branch> became optional, it neglected to update the in-code usage message. Fix this oversight. Reported-by: [email protected] Signed-off-by: Sidhant Sharma <[email protected]> Helped-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 114ff88 commit ae9f274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/worktree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "sigchain.h"
88

99
static const char * const worktree_usage[] = {
10-
N_("git worktree add [<options>] <path> <branch>"),
10+
N_("git worktree add [<options>] <path> [<branch>]"),
1111
N_("git worktree prune [<options>]"),
1212
NULL
1313
};

0 commit comments

Comments
 (0)