You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Controls the behavior of \fBgitmachetetraverse\fP when checking out a branch that is not currently checked out in any worktree.
497
+
Controls the behavior of \fBgitmachetetraverse\fP when it needs to act on a branch that is not currently checked out in any worktree.
498
498
.sp
499
-
The default value is \fBcd\-into\-main\-worktree\fP, which means that \fBtraverse\fP will change directory to the main worktree before checking out the branch.
500
-
.sp
501
-
Set to \fBstay\-in\-the\-current\-worktree\fP to make \fBtraverse\fP stay in whatever worktree has already been reached by that point,
502
-
and check out the branch there instead.
503
-
Note that this worktree might be different then the initial working directory where \fBtraverse\fP started.
499
+
Allowed values:
500
+
.INDENT7.0
501
+
.IP\(bu2
502
+
\fBcd\-into\-main\-worktree\fP (default): change directory to the main worktree and check out the branch there.
503
+
.IP\(bu2
504
+
\fBstay\-in\-the\-current\-worktree\fP: check out the branch in whichever worktree \fBtraverse\fP is currently operating in,
505
+
without changing directory. Note that this worktree might differ from the one where \fBtraverse\fP originally started.
506
+
.IP\(bu2
507
+
\fBcd\-into\-temporary\-worktree\fP: create a new worktree in a temporary directory, check out the branch there,
508
+
and remove this temporary worktree once \fBtraverse\fP moves on to the next branch (or finishes).
509
+
This ensures that no existing (non\-temporary) worktree has its checked\-out branch changed by \fBtraverse\fP\&.
510
+
.UNINDENT
504
511
.TP
505
512
.B\fBmachete.worktree.useTopLevelMacheteFile\fP:
506
513
The default value of this key is \fBtrue\fP, which means that the path to branch layout file will be \fB\&.git/machete\fP
@@ -2062,7 +2069,7 @@ whether a gray edge is displayed in \fBstatus\fP,
2062
2069
whether \fBtraverse\fP suggests to slide out the branch.
Controls the behavior of \fBgitmachetetraverse\fP when checking out a branch that is not currently checked out in any worktree.
2313
-
.sp
2314
-
The default value is \fBcd\-into\-main\-worktree\fP, which means that \fBtraverse\fP will change directory to the main worktree before checking out the branch.
Controls the behavior of ``git machete traverse`` when checking out a branch that is not currently checked out in any worktree.
1
+
Controls the behavior of ``git machete traverse`` when it needs to act on a branch that is not currently checked out in any worktree.
2
2
3
-
The default value is ``cd-into-main-worktree``, which means that ``traverse`` will change directory to the main worktree before checking out the branch.
3
+
Allowed values:
4
4
5
-
Set to ``stay-in-the-current-worktree`` to make ``traverse`` stay in whatever worktree has already been reached by that point,
6
-
and check out the branch there instead.
7
-
Note that this worktree might be different then the initial working directory where ``traverse`` started.
5
+
* ``cd-into-main-worktree`` (default): change directory to the main worktree and check out the branch there.
6
+
7
+
* ``stay-in-the-current-worktree``: check out the branch in whichever worktree ``traverse`` is currently operating in,
8
+
without changing directory. Note that this worktree might differ from the one where ``traverse`` originally started.
9
+
10
+
* ``cd-into-temporary-worktree``: create a new worktree in a temporary directory, check out the branch there,
11
+
and remove this temporary worktree once ``traverse`` moves on to the next branch (or finishes).
12
+
This ensures that no existing (non-temporary) worktree has its checked-out branch changed by ``traverse``.
0 commit comments