Re: [PATCH v2 16/23] worktree: add -b/-B options
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jul 4, 2015, 08:57 UTC
- Message-ID
- <CAPig+cQiJnrnz4jsGdT0=8kYogWfsNkjq5WQCGC4Zk6res5mtg@mail.gmail.com>
- In-Reply-To
- <CACsJy8AYFC+FW1bgSJwW34p6s2zn_6A4GhBaJjB8o8rxUvY72g@mail.gmail.com>
On Fri, Jul 3, 2015 at 11:19 PM, Duy Nguyen <pclouds@gmail.com> wrote:
Show 9 quoted lines
> On Sat, Jul 4, 2015 at 7:17 AM, Eric Sunshine <sunshine@sunshineco.com> wrote: >> 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.