Skip to content

Commit 649cf58

Browse files
pcloudsgitster
authored andcommitted
config.txt: move worktree.* to a separate file
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 07c11a0 commit 649cf58

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Documentation/config.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,4 @@ include::config/versionsort.txt[]
435435

436436
include::config/web.txt[]
437437

438-
worktree.guessRemote::
439-
With `add`, if no branch argument, and neither of `-b` nor
440-
`-B` nor `--detach` are given, the command defaults to
441-
creating a new branch from HEAD. If `worktree.guessRemote` is
442-
set to true, `worktree add` tries to find a remote-tracking
443-
branch whose name uniquely matches the new branch name. If
444-
such a branch exists, it is checked out and set as "upstream"
445-
for the new branch. If no such match can be found, it falls
446-
back to creating a new branch from the current HEAD.
438+
include::config/worktree.txt[]

Documentation/config/worktree.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
worktree.guessRemote::
2+
With `add`, if no branch argument, and neither of `-b` nor
3+
`-B` nor `--detach` are given, the command defaults to
4+
creating a new branch from HEAD. If `worktree.guessRemote` is
5+
set to true, `worktree add` tries to find a remote-tracking
6+
branch whose name uniquely matches the new branch name. If
7+
such a branch exists, it is checked out and set as "upstream"
8+
for the new branch. If no such match can be found, it falls
9+
back to creating a new branch from the current HEAD.

0 commit comments

Comments
 (0)