summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Sidhant Sharma <tigerkid001@gmail.com>2015-10-19 10:14:53 +0530
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-10-18 23:35:58 -0700
commitae9f2745bee74ed169f0ca2933b8cc9d21214110 (patch)
treec9b977a3ce68c45aac1b7b98b2adead57868d431 /builtin
parentconfig: rename "gc.pruneWorktreesExpire" to "gc.worktreePruneExpire" (diff)
downloadtgif-ae9f2745bee74ed169f0ca2933b8cc9d21214110.tar.xz
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>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/worktree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/worktree.c b/builtin/worktree.c
index 69248ba0a3..8d85a8bc11 100644
--- a/builtin/worktree.c
+++ b/builtin/worktree.c
@@ -7,7 +7,7 @@
#include "sigchain.h"
static const char * const worktree_usage[] = {
- N_("git worktree add [<options>] <path> <branch>"),
+ N_("git worktree add [<options>] <path> [<branch>]"),
N_("git worktree prune [<options>]"),
NULL
};