Re: misleading "man git-worktree", is last "add" argument necessarily a "branch"?
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jan 17, 2018, 13:34 UTC
- Message-ID
- <CACsJy8A0BcdqwkDDd0Fx_8DDCgJc6gZaXkcYqysdv8BH1nvibQ@mail.gmail.com>
- In-Reply-To
- <alpine.LFD.2.21.1801170455380.16166@localhost.localdomain>
On Wed, Jan 17, 2018 at 7:58 PM, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
Show 10 quoted lines
> > perusing "git worktree", and man page reads: > > SYNOPSIS > git worktree add [-f] [--detach] [--checkout] [--lock] \ > [-b <new-branch>] <path> [<branch>] > ^^^^^^^^^^ > > however, can't that last optional argument be any arbitrary commit, > not just a "branch"?
It's been changed to commit-ish about two months ago in c4738aedc0 (worktree: add can be created from any commit-ish - 2017-11-26)
-- Duy