On Fri, Jul 3, 2015 at 11:19 PM, Duy Nguyen [off-list ref] wrote:
On Sat, Jul 4, 2015 at 7:17 AM, Eric Sunshine [off-list ref] wrote:
quoted
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.
There are some other ref manipulation options we can bring over like
--orphan and --track. But you can totally leave them out and we can
add them back when people actually need them.
Yes. I added --force, -b/-B, and --detach because they are used by the
tests; and I considered --orphan and --track to be good candidates, as
well, but decided to omit them for now since the series is already
overly long.