diff options
author | Thomas Gummerer <t.gummerer@gmail.com> | 2017-11-26 19:43:52 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-27 09:48:06 +0900 |
commit | c4738aedc0aee085e25e20b6c32b9c4680f265d1 (patch) | |
tree | 016ce4bb1ba51bf5d3bf267aea497256c15d62c3 /builtin | |
parent | 7c85a87c5449f6495fe0327cfdcd1e0940d8545a (diff) | |
download | git-c4738aedc0aee085e25e20b6c32b9c4680f265d1.tar.gz git-c4738aedc0aee085e25e20b6c32b9c4680f265d1.tar.xz |
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>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions