git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH 1/2] Doc: use `--type=bool` instead of `--bool`
@ 2018-09-19 16:38 Martin Ågren
  2018-09-19 16:38 ` [PATCH 2/2] git-config.txt: fix 'see: above' note Martin Ågren
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Ågren @ 2018-09-19 16:38 UTC (permalink / raw)
  To: git; +Cc: Taylor Blau

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>
---
 Documentation/config.txt     | 2 +-
 Documentation/git-config.txt | 4 ++--
 Documentation/git.txt        | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/config.txt b/Documentation/config.txt
index 112041f407..088cbefecc 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -225,7 +225,7 @@ boolean::
 	false;; Boolean false literals are `no`, `off`, `false`,
 		`0` and the empty string.
 +
-When converting value to the canonical form using `--bool` type
+When converting a value to its canonical form using the `--type=bool` type
 specifier, 'git config' will ensure that the output is "true" or
 "false" (spelled in lowercase).
 
diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
index 8e240435be..9d8cea72dd 100644
--- a/Documentation/git-config.txt
+++ b/Documentation/git-config.txt
@@ -442,9 +442,9 @@ For URLs in `https://weak.example.com`, `http.sslVerify` is set to
 false, while it is set to `true` for all others:
 
 ------------
-% git config --bool --get-urlmatch http.sslverify https://good.example.com
+% git config --type=bool --get-urlmatch http.sslverify https://good.example.com
 true
-% git config --bool --get-urlmatch http.sslverify https://weak.example.com
+% git config --type=bool --get-urlmatch http.sslverify https://weak.example.com
 false
 % git config --get-urlmatch http https://weak.example.com
 http.cookieFile /tmp/cookie.txt
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 74a9d7edb4..08e533d62b 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -76,7 +76,7 @@ Note that omitting the `=` in `git -c foo.bar ...` is allowed and sets
 `foo.bar` to the boolean true value (just like `[foo]bar` would in a
 config file). Including the equals but with an empty value (like `git -c
 foo.bar= ...`) sets `foo.bar` to the empty string which `git config
---bool` will convert to `false`.
+--type=bool` will convert to `false`.
 
 --exec-path[=<path>]::
 	Path to wherever your core Git programs are installed.
-- 
2.19.0.216.g2d3b1c576c


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] git-config.txt: fix 'see: above' note
  2018-09-19 16:38 [PATCH 1/2] Doc: use `--type=bool` instead of `--bool` Martin Ågren
@ 2018-09-19 16:38 ` Martin Ågren
  2018-09-19 17:21   ` Taylor Blau
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Ågren @ 2018-09-19 16:38 UTC (permalink / raw)
  To: git; +Cc: Taylor Blau

Rather than saying "(see: above)", drop the colon. Also drop the comma
before this note.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
---
 Documentation/git-config.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
index 9d8cea72dd..5e87d82933 100644
--- a/Documentation/git-config.txt
+++ b/Documentation/git-config.txt
@@ -188,8 +188,8 @@ Valid `<type>`'s include:
 --bool-or-int::
 --path::
 --expiry-date::
-  Historical options for selecting a type specifier. Prefer instead `--type`,
-  (see: above).
+  Historical options for selecting a type specifier. Prefer instead `--type`
+  (see above).
 
 --no-type::
   Un-sets the previously set type specifier (if one was previously set). This
-- 
2.19.0.216.g2d3b1c576c


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] git-config.txt: fix 'see: above' note
  2018-09-19 16:38 ` [PATCH 2/2] git-config.txt: fix 'see: above' note Martin Ågren
@ 2018-09-19 17:21   ` Taylor Blau
  2018-09-19 17:55     ` Martin Ågren
  0 siblings, 1 reply; 4+ messages in thread
From: Taylor Blau @ 2018-09-19 17:21 UTC (permalink / raw)
  To: Martin Ågren; +Cc: git, Taylor Blau

Hi Martin,

On Wed, Sep 19, 2018 at 06:38:19PM +0200, Martin Ågren wrote:
> Rather than saying "(see: above)", drop the colon. Also drop the comma
> before this note.
>
> Signed-off-by: Martin Ågren <martin.agren@gmail.com>

Thanks for both of these. I should have at least taken care of 1/2
myself, but I am appreciative of you doing it, too :-).

I could take or leave 2/2, since I usually write ", (see: above)", but
I'm not sure if that's grammatically correct or not.

But, either approach is fine with me, so both of these have my:

  Reviewed-by: Taylor Blau <me@ttaylorr.com>

Thanks,
Taylor

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] git-config.txt: fix 'see: above' note
  2018-09-19 17:21   ` Taylor Blau
@ 2018-09-19 17:55     ` Martin Ågren
  0 siblings, 0 replies; 4+ messages in thread
From: Martin Ågren @ 2018-09-19 17:55 UTC (permalink / raw)
  To: Taylor Blau; +Cc: Git Mailing List

Hi Taylor,

On Wed, 19 Sep 2018 at 19:21, Taylor Blau <me@ttaylorr.com> wrote:
> I could take or leave 2/2, since I usually write ", (see: above)", but
> I'm not sure if that's grammatically correct or not.

Well, I sure ain't no grammar expert too... This is not a patch I feel
strongly about, so I'll be happy to defer to others.

Thanks for reviewing,
Martin

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-19 17:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-19 16:38 [PATCH 1/2] Doc: use `--type=bool` instead of `--bool` Martin Ågren
2018-09-19 16:38 ` [PATCH 2/2] git-config.txt: fix 'see: above' note Martin Ågren
2018-09-19 17:21   ` Taylor Blau
2018-09-19 17:55     ` Martin Ågren

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).