Skip to content

Commit d023df1

Browse files
sunshinecogitster
authored andcommitted
git-worktree.txt: fix indentation of example and text of 'add' command
When 4e85333 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 661a5a3 commit d023df1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Documentation/git-worktree.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ If <commit-ish> is a branch name (call it `<branch>`) and is not found,
5656
and neither `-b` nor `-B` nor `--detach` are used, but there does
5757
exist a tracking branch in exactly one remote (call it `<remote>`)
5858
with a matching name, treat as equivalent to:
59+
+
5960
------------
6061
$ git worktree add --track -b <branch> <path> <remote>/<branch>
6162
------------

0 commit comments

Comments
 (0)