]> git.ipfire.org Git - thirdparty/git.git/commit
worktree: add can be created from any commit-ish
authorThomas Gummerer <t.gummerer@gmail.com>
Sun, 26 Nov 2017 19:43:52 +0000 (19:43 +0000)
committerJunio C Hamano <gitster@pobox.com>
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 <rsbecker@nexbridge.com>
Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-worktree.txt