worktree: add -b/-B options
commitcbdf60fa183e3a2330849046846b400ef4a99c3b
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 6 Jul 2015 17:30:53 +0000 (6 13:30 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Jul 2015 18:07:47 +0000 (6 11:07 -0700)
tree2ea6cfd259515270553cc433822e253d1c479634
parent39ecb27436296361371d3caadcc9bc4a4e0b556d
worktree: add -b/-B options

One of git-worktree's roles is to populate the new worktree, much like
git-checkout, and thus, for convenience, ought to support several of the
same shortcuts. Toward this goal, add -b/-B options to create a new
branch and check it out in the new worktree.

(For brevity, only -b is mentioned in the synopsis; -B is omitted.)

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-worktree.txt
builtin/worktree.c