Skip to content

Commit b4583d5

Browse files
sunshinecogitster
authored andcommitted
doc/config: do a better job of introducing 'worktree.guessRemote'
The documentation for this option jumps right in with "With `add`", without explaining that `add` is a sub-command of "git worktree". Together with rather odd grammatical structure of the remainder of the sentence, the description can be difficult for newcomers to understand. Clarify by improving the grammar and mentioning "git worktree add" explicitly. Reported-by: Олег Самойлов <[email protected]> Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 649cf58 commit b4583d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/config/worktree.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
worktree.guessRemote::
2-
With `add`, if no branch argument, and neither of `-b` nor
3-
`-B` nor `--detach` are given, the command defaults to
2+
If no branch is specified and neither `-b` nor `-B` nor
3+
`--detach` is used, then `git worktree add` defaults to
44
creating a new branch from HEAD. If `worktree.guessRemote` is
55
set to true, `worktree add` tries to find a remote-tracking
66
branch whose name uniquely matches the new branch name. If

0 commit comments

Comments
 (0)