summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-02-28 21:37:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-02-28 21:37:57 (GMT)
commit2c20dc16ec3fa6f86444adfb4b090ab3e004ea39 (patch)
treeab0c4b8e7999669e4914f57c670b3008394db1f1 /Documentation
parentba5f3fc4678fa772c4fec708cba17a6c9fcb489c (diff)
parentd023df1ee6fac80897aebe99cdefe7ec82067ce2 (diff)
downloadgit-2c20dc16ec3fa6f86444adfb4b090ab3e004ea39.zip
git-2c20dc16ec3fa6f86444adfb4b090ab3e004ea39.tar.gz
git-2c20dc16ec3fa6f86444adfb4b090ab3e004ea39.tar.bz2
Merge branch 'tg/worktree-create-tracking'
Hotfix for a recent topic. * tg/worktree-create-tracking: git-worktree.txt: fix indentation of example and text of 'add' command git-worktree.txt: fix missing ")" typo
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-worktree.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt
index 41585f5..5ac3f68 100644
--- a/Documentation/git-worktree.txt
+++ b/Documentation/git-worktree.txt
@@ -52,10 +52,11 @@ is linked to the current repository, sharing everything except working
directory specific files such as HEAD, index, etc. `-` may also be
specified as `<commit-ish>`; it is synonymous with `@{-1}`.
+
-If <commit-ish> is a branch name (call it `<branch>` and is not found,
+If <commit-ish> is a branch name (call it `<branch>`) and is not found,
and neither `-b` nor `-B` nor `--detach` are used, but there does
exist a tracking branch in exactly one remote (call it `<remote>`)
-with a matching name, treat as equivalent to
+with a matching name, treat as equivalent to:
++
------------
$ git worktree add --track -b <branch> <path> <remote>/<branch>
------------