summaryrefslogtreecommitdiff
path: root/Documentation/config
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2020-10-08 05:48:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-10-08 16:25:29 (GMT)
commit64f1f58fe7c0837bd0ae56ba83add5e1b84c54d3 (patch)
tree9ec6d813813db2e42f52855b96b0fb5abbe72a40 /Documentation/config
parentef09e7ddf3e77960ea24ea1580439fb725b4063a (diff)
downloadgit-64f1f58fe7c0837bd0ae56ba83add5e1b84c54d3.zip
git-64f1f58fe7c0837bd0ae56ba83add5e1b84c54d3.tar.gz
git-64f1f58fe7c0837bd0ae56ba83add5e1b84c54d3.tar.bz2
checkout: learn to respect checkout.guess
The current behavior of git checkout/switch is that --guess is currently enabled by default. However, some users may not wish for this to happen automatically. Instead of forcing users to specify --no-guess manually each time, teach these commands the checkout.guess configuration variable that gives users the option to set a default behavior. Teach the completion script to recognize the new config variable and disable DWIM logic if it is set to false. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config')
-rw-r--r--Documentation/config/checkout.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/config/checkout.txt b/Documentation/config/checkout.txt
index e3684a5..2cddf7b 100644
--- a/Documentation/config/checkout.txt
+++ b/Documentation/config/checkout.txt
@@ -16,3 +16,8 @@ will checkout the `<something>` branch on another remote,
and by linkgit:git-worktree[1] when `git worktree add` refers to a
remote branch. This setting might be used for other checkout-like
commands or functionality in the future.
+
+checkout.guess::
+ Provides the default value for the `--guess` or `--no-guess`
+ option in `git checkout` and `git switch`. See
+ linkgit:git-switch[1] and linkgit:git-checkout[1].