diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-07-09 22:25:44 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-09 22:25:44 (GMT) |
commit | f496b064fc1135e0dded7f93d85d72eb0b302c22 (patch) | |
tree | 2149d0faf99c67ddd76a6d68125037f661db48a5 /Documentation/config/branch.txt | |
parent | b49d337bfbdd431697161244ff7b2241d9887c9f (diff) | |
parent | 97ed685701a6df0273f7d29fd5bc0a0658a63cad (diff) | |
download | git-f496b064fc1135e0dded7f93d85d72eb0b302c22.zip git-f496b064fc1135e0dded7f93d85d72eb0b302c22.tar.gz git-f496b064fc1135e0dded7f93d85d72eb0b302c22.tar.bz2 |
Merge branch 'nd/switch-and-restore'
Two new commands "git switch" and "git restore" are introduced to
split "checking out a branch to work on advancing its history" and
"checking out paths out of the index and/or a tree-ish to work on
advancing the current history" out of the single "git checkout"
command.
* nd/switch-and-restore: (46 commits)
completion: disable dwim on "git switch -d"
switch: allow to switch in the middle of bisect
t2027: use test_must_be_empty
Declare both git-switch and git-restore experimental
help: move git-diff and git-reset to different groups
doc: promote "git restore"
user-manual.txt: prefer 'merge --abort' over 'reset --hard'
completion: support restore
t: add tests for restore
restore: support --patch
restore: replace --force with --ignore-unmerged
restore: default to --source=HEAD when only --staged is specified
restore: reject invalid combinations with --staged
restore: add --worktree and --staged
checkout: factor out worktree checkout code
restore: disable overlay mode by default
restore: make pathspec mandatory
restore: take tree-ish from --source option instead
checkout: split part of it to new command 'restore'
doc: promote "git switch"
...
Diffstat (limited to 'Documentation/config/branch.txt')
-rw-r--r-- | Documentation/config/branch.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/config/branch.txt b/Documentation/config/branch.txt index 8f4b3fa..a592d52 100644 --- a/Documentation/config/branch.txt +++ b/Documentation/config/branch.txt @@ -1,5 +1,5 @@ branch.autoSetupMerge:: - Tells 'git branch' and 'git checkout' to set up new branches + Tells 'git branch', 'git switch' and 'git checkout' to set up new branches so that linkgit:git-pull[1] will appropriately merge from the starting point branch. Note that even if this option is not set, this behavior can be chosen per-branch using the `--track` @@ -11,7 +11,7 @@ branch.autoSetupMerge:: branch. This option defaults to true. branch.autoSetupRebase:: - When a new branch is created with 'git branch' or 'git checkout' + When a new branch is created with 'git branch', 'git switch' or 'git checkout' that tracks another branch, this variable tells Git to set up pull to rebase instead of merge (see "branch.<name>.rebase"). When `never`, rebase is never automatically set to true. |