Skip to content

Commit 7a3335d

Browse files
committed
Merge branch 'ma/config-doc-update'
Doc update. * ma/config-doc-update: git-config.txt: fix 'see: above' note Doc: use `--type=bool` instead of `--bool`
2 parents 73b9c6f + 08caa95 commit 7a3335d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Documentation/config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ boolean::
225225
false;; Boolean false literals are `no`, `off`, `false`,
226226
`0` and the empty string.
227227
+
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
229229
specifier, 'git config' will ensure that the output is "true" or
230230
"false" (spelled in lowercase).
231231

Documentation/git-config.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ Valid `<type>`'s include:
188188
--bool-or-int::
189189
--path::
190190
--expiry-date::
191-
Historical options for selecting a type specifier. Prefer instead `--type`,
192-
(see: above).
191+
Historical options for selecting a type specifier. Prefer instead `--type`
192+
(see above).
193193

194194
--no-type::
195195
Un-sets the previously set type specifier (if one was previously set). This
@@ -442,9 +442,9 @@ For URLs in `https://weak.example.com`, `http.sslVerify` is set to
442442
false, while it is set to `true` for all others:
443443

444444
------------
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
446446
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
448448
false
449449
% git config --get-urlmatch http https://weak.example.com
450450
http.cookieFile /tmp/cookie.txt

Documentation/git.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Note that omitting the `=` in `git -c foo.bar ...` is allowed and sets
7676
`foo.bar` to the boolean true value (just like `[foo]bar` would in a
7777
config file). Including the equals but with an empty value (like `git -c
7878
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`.
8080

8181
--exec-path[=<path>]::
8282
Path to wherever your core Git programs are installed.

0 commit comments

Comments
 (0)