summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2018-02-16 20:44:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-02-16 21:12:27 (GMT)
commitd023df1ee6fac80897aebe99cdefe7ec82067ce2 (patch)
treeb92075e230a0c94290f4a783728d7ce96fa1413a /Documentation
parent661a5a382e37c8a81e76ba803559075f3350a51c (diff)
downloadgit-d023df1ee6fac80897aebe99cdefe7ec82067ce2.zip
git-d023df1ee6fac80897aebe99cdefe7ec82067ce2.tar.gz
git-d023df1ee6fac80897aebe99cdefe7ec82067ce2.tar.bz2
git-worktree.txt: fix indentation of example and text of 'add' command
When 4e85333197 (worktree: make add <path> <branch> dwim, 2017-11-26) added an example command in a literal code block, it neglected to insert a mandatory "+" line before the block. This omission resulted in both the literal code block and the (existing) paragraph following the block to be outdented, even though they should be indented under the 'add' sub-command along with the rest of the text pertaining to that command. Furthermore, the mandatory "+" line separating the code block from the following text got rendered as a leading character on the line ("+ If <commit-ish>...") rather than being treated as a formatting directive. Fix these problems by adding the missing "+" line before the example code block. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-worktree.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt
index c941c48..5ac3f68 100644
--- a/Documentation/git-worktree.txt
+++ b/Documentation/git-worktree.txt
@@ -56,6 +56,7 @@ 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:
++
------------
$ git worktree add --track -b <branch> <path> <remote>/<branch>
------------