Doc: use `--type=bool` instead of `--bool`

After fb0dc3bac1 (builtin/config.c: support `--type=<type>` as preferred alias for `--<type>`, 2018-04-18) we have a more modern way of spelling `--bool`. Update all instances except those that explicitly document the "historical options" in git-config.txt. The other old-style type-specifiers already seem to be gone except for in that list of historical options. Tweak the grammar a little in config.txt while we are there. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Martin Ågren committed Sep 19, 2018 at 18:38 UTC ed3bb3dfc72c14492d00531395799194630f3669
3 files changed +4 -4
Documentation/config.txt
+1 -1
@@ -225,7 +225,7 @@ boolean::
225 false;; Boolean false literals are `no`, `off`, `false`,
226 `0` and the empty string.
227 +
228 -When converting value to the canonical form using `--bool` type
228 +When converting a value to its canonical form using the `--type=bool` type
229 specifier, 'git config' will ensure that the output is "true" or
230 "false" (spelled in lowercase).
231
Documentation/git-config.txt
+2 -2
@@ -442,9 +442,9 @@ For URLs in `https://weak.example.com`, `http.sslVerify` is set to
442 false, while it is set to `true` for all others:
443
444 ------------
445 -% git config --bool --get-urlmatch http.sslverify https://good.example.com
445 +% git config --type=bool --get-urlmatch http.sslverify https://good.example.com
446 true
447 -% git config --bool --get-urlmatch http.sslverify https://weak.example.com
447 +% git config --type=bool --get-urlmatch http.sslverify https://weak.example.com
448 false
449 % git config --get-urlmatch http https://weak.example.com
450 http.cookieFile /tmp/cookie.txt
Documentation/git.txt
+1 -1
@@ -76,7 +76,7 @@ Note that omitting the `=` in `git -c foo.bar ...` is allowed and sets
76 `foo.bar` to the boolean true value (just like `[foo]bar` would in a
77 config file). Including the equals but with an empty value (like `git -c
78 foo.bar= ...`) sets `foo.bar` to the empty string which `git config
79 ---bool` will convert to `false`.
79 +--type=bool` will convert to `false`.
80
81 --exec-path[=<path>]::
82 Path to wherever your core Git programs are installed.