From: Junio C Hamano Date: Mon, 06 Jul 2015 19:14:54 GMT Subject: Re: [PATCH v2 21/23] worktree: add: make -b/-B default to HEAD when is omitted Message-ID: In-Reply-To: <1435969052-540-22-git-send-email-sunshine@sunshineco.com> Eric Sunshine writes: > As a convenience, like "git branch" and "git checkout -b", make > "git worktree add -b " default to HEAD when > is omitted. > > Signed-off-by: Eric Sunshine > --- > Documentation/git-worktree.txt | 1 + > builtin/worktree.c | 6 ++++-- > t/t2025-worktree-add.sh | 7 +++++++ > 3 files changed, 12 insertions(+), 2 deletions(-) > > diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt > index f6c3747..5ca11f6 100644 > --- a/Documentation/git-worktree.txt > +++ b/Documentation/git-worktree.txt > @@ -69,6 +69,7 @@ OPTIONS > -B :: > With `add`, create a new branch named `` starting at > ``, and check out `` into the new worktree. > + If `` is omitted, it defaults to HEAD. What would be the SYNOPSIS change to adjust for this, I wonder. 'git worktree add' [-f] [--detach] [-b ] [] or something? Can I omit without giving -b ?