worktree: add can be created from any commit-ish
authorThomas Gummerer <redacted>
Sun, 26 Nov 2017 19:43:52 +0000 (19:43 +0000)
committerJunio C Hamano <redacted>
Mon, 27 Nov 2017 00:48:06 +0000 (09:48 +0900)
commitc4738aedc0aee085e25e20b6c32b9c4680f265d1
tree016ce4bb1ba51bf5d3bf267aea497256c15d62c3
parent7c85a87c5449f6495fe0327cfdcd1e0940d8545a
worktree: add can be created from any commit-ish

Currently 'git worktree add' is documented to take an optional <branch>
argument, which is checked out in the new worktree.  However it is more
generally possible to use a commit-ish as the optional argument, and
check that out into the new worktree.

Document that this is a possibility, as new users of git worktree add
might find it helpful.

Reported-by: Randall S. Becker <redacted>
Signed-off-by: Thomas Gummerer <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/git-worktree.txt
git clone https://git.99rst.org/PROJECT