Skip to content

Commit 661a5a3

Browse files
sunshinecogitster
authored andcommitted
git-worktree.txt: fix missing ")" typo
Add the closing ")" to a parenthetical phrase introduced by 4e85333 (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 <[email protected]> Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 50fdf7b commit 661a5a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-worktree.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ is linked to the current repository, sharing everything except working
5252
directory specific files such as HEAD, index, etc. `-` may also be
5353
specified as `<commit-ish>`; it is synonymous with `@{-1}`.
5454
+
55-
If <commit-ish> is a branch name (call it `<branch>` and is not found,
55+
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>`)
58-
with a matching name, treat as equivalent to
58+
with a matching name, treat as equivalent to:
5959
------------
6060
$ git worktree add --track -b <branch> <path> <remote>/<branch>
6161
------------

0 commit comments

Comments
 (0)