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: ch3cooli@gmail.com Signed-off-by: Sidhant Sharma <tigerkid001@gmail.com> Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Sidhant Sharma committed
Oct 19, 2015 at 10:14 UTC
ae9f2745bee74ed169f0ca2933b8cc9d21214110
1 file changed
+1
-1
builtin/worktree.c
+1
-1
@@ -7,7 +7,7 @@
7
#include "sigchain.h"
8
9
static const char * const worktree_usage[] = {
10
- N_("git worktree add [<options>] <path> <branch>"),
10
+ N_("git worktree add [<options>] <path> [<branch>]"),
11
N_("git worktree prune [<options>]"),
12
NULL
13
};