Re: [PATCH] worktree: usage: denote <branch> as optional with 'add'
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 19, 2015, 06:35 UTC
- Message-ID
- <xmqqr3kr9xh1.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <1445229893-4179-1-git-send-email-tigerkid001@gmail.com>
Sidhant Sharma <tigerkid001@gmail.com> writes:
Show 8 quoted lines
> 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> > ---
Thanks.
I'll add "Helped-by: Eric Sunshine <sunshine@sunshineco.com>" and queue.
Show 18 quoted lines
> builtin/worktree.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/builtin/worktree.c b/builtin/worktree.c
> index 71bb770..33d2d37 100644
> --- a/builtin/worktree.c
> +++ b/builtin/worktree.c
> @@ -10,7 +10,7 @@
> #include "refs.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
> };
> --
> 2.6.2