summaryrefslogtreecommitdiff
path: root/Documentation/git-worktree.txt
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2018-02-16 20:44:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-02-16 21:11:40 (GMT)
commit661a5a382e37c8a81e76ba803559075f3350a51c (patch)
tree9e0164efc003a200fbbe28af405f18dbe8d1448a /Documentation/git-worktree.txt
parent50fdf7b1b12c801ded04c31c108ece9a9570a9ec (diff)
downloadgit-661a5a382e37c8a81e76ba803559075f3350a51c.zip
git-661a5a382e37c8a81e76ba803559075f3350a51c.tar.gz
git-661a5a382e37c8a81e76ba803559075f3350a51c.tar.bz2
git-worktree.txt: fix missing ")" typo
Add the closing ")" to a parenthetical phrase introduced by 4e85333197 (worktree: make add <path> <branch> dwim, 2017-11-26). While at it, add a missing ":" at the end of the same sentence since it precedes an example literal command block. Reported-by: Mike Nordell <tamlin.thefirst@gmail.com> Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-worktree.txt')
-rw-r--r--Documentation/git-worktree.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt
index 41585f5..c941c48 100644
--- a/Documentation/git-worktree.txt
+++ b/Documentation/git-worktree.txt
@@ -52,10 +52,10 @@ 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>
------------