From: Eric Sunshine Date: Sun, 18 Oct 2015 16:51:47 GMT Subject: Re: [PATCH] Fix worktree usage message Message-ID: In-Reply-To: <1445170530-31573-1-git-send-email-tigerkid001@gmail.com> On Sun, Oct 18, 2015 at 8:15 AM, Sidhant Sharma wrote: > Mark optional in worktree command line usage to maintain consistency with man pages. Thanks for the patch. To clarify that it is the in-code usage string which is incorrect, rather than the man page, how about something like the following as commit message instead? worktree: usage: denote as optional with 'add' Although 1eb07d8 (worktree: add: auto-vivify new branch when is omitted, 2015-07-06) updated the documentation when became optional, it neglected to update the in-code usage message. Fix this oversight. > Reported-by: ch3cooli@gmail.com > > Signed-off-by: Sidhant Sharma Citing the reporter is a nice touch, but drop the blank line between it and the sign-off. > --- > 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 [] "), > + N_("git worktree add [] []"), > N_("git worktree prune []"), > NULL > }; > -- > 2.6.2