git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] docs: add missing colon to Documentation/config/gpg.txt
@ 2021-12-17  9:05 Greg Hurrell
  2021-12-17 15:44 ` Eric Sunshine
  0 siblings, 1 reply; 9+ messages in thread
From: Greg Hurrell @ 2021-12-17  9:05 UTC (permalink / raw)
  To: git

The missing colon here caused the docs to misrender in places such as:

    https://git-scm.com/docs/git-config

where, the `gpg.ssh.defaultKeyCommand` option lacked bold styling and
didn't get an anchor link like its neighbors have; eg:

    https://git-scm.com/docs/git-config#Documentation/git-config.txt-gpgsshallowedSignersFile
---
 Documentation/config/gpg.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/config/gpg.txt b/Documentation/config/gpg.txt
index 4f30c7dbdd..94eba373cc 100644
--- a/Documentation/config/gpg.txt
+++ b/Documentation/config/gpg.txt
@@ -34,7 +34,7 @@ gpg.minTrustLevel::
 * `fully`
 * `ultimate`
 
-gpg.ssh.defaultKeyCommand:
+gpg.ssh.defaultKeyCommand::
 	This command that will be run when user.signingkey is not set and a ssh
 	signature is requested. On successful exit a valid ssh public key is
 	expected in the	first line of its output. To automatically use the first
-- 
2.33.0


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

* Re: [PATCH] docs: add missing colon to Documentation/config/gpg.txt
  2021-12-17  9:05 [PATCH] docs: add missing colon to Documentation/config/gpg.txt Greg Hurrell
@ 2021-12-17 15:44 ` Eric Sunshine
  2021-12-17 15:48   ` Eric Sunshine
                     ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Eric Sunshine @ 2021-12-17 15:44 UTC (permalink / raw)
  To: Greg Hurrell; +Cc: Git List

On Fri, Dec 17, 2021 at 7:13 AM Greg Hurrell <greg@hurrell.net> wrote:
> The missing colon here caused the docs to misrender in places such as:
>
>     https://git-scm.com/docs/git-config
>
> where, the `gpg.ssh.defaultKeyCommand` option lacked bold styling and
> didn't get an anchor link like its neighbors have; eg:
>
>     https://git-scm.com/docs/git-config#Documentation/git-config.txt-gpgsshallowedSignersFile
> ---

Thanks, this fix is "obviously correct".

Please add your Signed-off-by: at the end of the commit message.

Minor: The commit message could work just as well without mentioning a
particular site hosting documentation, so something like this would
also be fine:

    Add missing colon to ensure correct rendering of definition list
    item. Without the proper number of colons, it renders as just
    another top-level paragraph rather than a list item.

> diff --git a/Documentation/config/gpg.txt b/Documentation/config/gpg.txt
> @@ -34,7 +34,7 @@ gpg.minTrustLevel::
> -gpg.ssh.defaultKeyCommand:
> +gpg.ssh.defaultKeyCommand::
>         This command that will be run when user.signingkey is not set and a ssh
>         signature is requested. On successful exit a valid ssh public key is
>         expected in the first line of its output. To automatically use the first

If you want to tackle them, some other fixes would be:

* "This _is the_ command that..." or "This command will be..."

* in user-facing documentation, we use camelCase for configuration
names, so "user.signingkey" should be "user.signingKey"

* s/ssh/SSH/

* s/exit/exit,/

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

* Re: [PATCH] docs: add missing colon to Documentation/config/gpg.txt
  2021-12-17 15:44 ` Eric Sunshine
@ 2021-12-17 15:48   ` Eric Sunshine
  2021-12-17 16:11   ` [PATCH v2] " Greg Hurrell
                     ` (3 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Eric Sunshine @ 2021-12-17 15:48 UTC (permalink / raw)
  To: Greg Hurrell; +Cc: Git List

On Fri, Dec 17, 2021 at 10:44 AM Eric Sunshine <sunshine@sunshineco.com> wrote:
> > +gpg.ssh.defaultKeyCommand::
> >         This command that will be run when user.signingkey is not set and a ssh
> >         signature is requested. On successful exit a valid ssh public key is
> >         expected in the first line of its output. To automatically use the first
>
> If you want to tackle them, some other fixes would be:
>
> * "This _is the_ command that..." or "This command will be..."
>
> * in user-facing documentation, we use camelCase for configuration
> names, so "user.signingkey" should be "user.signingKey"
>
> * s/ssh/SSH/
>
> * s/exit/exit,/

Oh, I forgot to mention that we typically want to use backticks to
typeset text with fixed-width font for elements such as:

    `user.signingKey`
    `ssh-agent`
    `ssh-add -L`

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

* [PATCH v2] docs: add missing colon to Documentation/config/gpg.txt
  2021-12-17 15:44 ` Eric Sunshine
  2021-12-17 15:48   ` Eric Sunshine
@ 2021-12-17 16:11   ` Greg Hurrell
  2021-12-17 16:13   ` Greg Hurrell
                     ` (2 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Greg Hurrell @ 2021-12-17 16:11 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Eric Sunshine

Just added a Signed-off-by and reworded the commit message
as suggested by Eric Sunshine. There are other fixes that could
be applied to other places in this documentation (eg. backticks,
capitalization fixes etc) but my intent here was just to fix the
most jarring problem.


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

* [PATCH v2] docs: add missing colon to Documentation/config/gpg.txt
  2021-12-17 15:44 ` Eric Sunshine
  2021-12-17 15:48   ` Eric Sunshine
  2021-12-17 16:11   ` [PATCH v2] " Greg Hurrell
@ 2021-12-17 16:13   ` Greg Hurrell
  2021-12-17 16:13   ` Greg Hurrell
  2021-12-17 16:17   ` Greg Hurrell
  4 siblings, 0 replies; 9+ messages in thread
From: Greg Hurrell @ 2021-12-17 16:13 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Eric Sunshine

Just added a Signed-off-by and reworded the commit message
as suggested by Eric Sunshine. There are other fixes that could
be applied to other places in this documentation (eg. backticks,
capitalization fixes etc) but my intent here was just to fix the
most jarring problem.


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

* [PATCH v2] docs: add missing colon to Documentation/config/gpg.txt
  2021-12-17 15:44 ` Eric Sunshine
                     ` (2 preceding siblings ...)
  2021-12-17 16:13   ` Greg Hurrell
@ 2021-12-17 16:13   ` Greg Hurrell
  2021-12-17 16:17   ` Greg Hurrell
  4 siblings, 0 replies; 9+ messages in thread
From: Greg Hurrell @ 2021-12-17 16:13 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Eric Sunshine

Just added a Signed-off-by and reworded the commit message
as suggested by Eric Sunshine. There are other fixes that could
be applied to other places in this documentation (eg. backticks,
capitalization fixes etc) but my intent here was just to fix the
most jarring problem.


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

* [PATCH v2] docs: add missing colon to Documentation/config/gpg.txt
  2021-12-17 15:44 ` Eric Sunshine
                     ` (3 preceding siblings ...)
  2021-12-17 16:13   ` Greg Hurrell
@ 2021-12-17 16:17   ` Greg Hurrell
  2021-12-17 16:17     ` Greg Hurrell
  4 siblings, 1 reply; 9+ messages in thread
From: Greg Hurrell @ 2021-12-17 16:17 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Eric Sunshine

Just added a Signed-off-by and reworded the commit message
as suggested by Eric Sunshine. There are other fixes that could
be applied to other places in this documentation (eg. backticks,
capitalization fixes etc) but my intent here was just to fix the
most jarring problem.


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

* [PATCH v2] docs: add missing colon to Documentation/config/gpg.txt
  2021-12-17 16:17   ` Greg Hurrell
@ 2021-12-17 16:17     ` Greg Hurrell
  2021-12-17 16:19       ` Greg Hurrell
  0 siblings, 1 reply; 9+ messages in thread
From: Greg Hurrell @ 2021-12-17 16:17 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Eric Sunshine, Greg Hurrell

Add missing colon to ensure correct rendering of definition list
item. Without the proper number of colons, it renders as just another
top-level paragraph rather than a list item.

Signed-off-by: Greg Hurrell <greg@hurrell.net>
---
 Documentation/config/gpg.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/config/gpg.txt b/Documentation/config/gpg.txt
index 4f30c7dbdd..94eba373cc 100644
--- a/Documentation/config/gpg.txt
+++ b/Documentation/config/gpg.txt
@@ -34,7 +34,7 @@ gpg.minTrustLevel::
 * `fully`
 * `ultimate`
 
-gpg.ssh.defaultKeyCommand:
+gpg.ssh.defaultKeyCommand::
 	This command that will be run when user.signingkey is not set and a ssh
 	signature is requested. On successful exit a valid ssh public key is
 	expected in the	first line of its output. To automatically use the first
-- 
2.33.0


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

* Re: [PATCH v2] docs: add missing colon to Documentation/config/gpg.txt
  2021-12-17 16:17     ` Greg Hurrell
@ 2021-12-17 16:19       ` Greg Hurrell
  0 siblings, 0 replies; 9+ messages in thread
From: Greg Hurrell @ 2021-12-17 16:19 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Eric Sunshine

Sorry about all the duplicate messages sent previously — I
was dusting off `git send-email` for the first time in a long time
and thought they were dry runs, but evidently they were not.

🤦

On Fri, Dec 17, 2021, at 5:17 PM, Greg Hurrell wrote:
> Add missing colon to ensure correct rendering of definition list
> item. Without the proper number of colons, it renders as just another
> top-level paragraph rather than a list item.
> 
> Signed-off-by: Greg Hurrell <greg@hurrell.net>
> ---
> Documentation/config/gpg.txt | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/config/gpg.txt b/Documentation/config/gpg.txt
> index 4f30c7dbdd..94eba373cc 100644
> --- a/Documentation/config/gpg.txt
> +++ b/Documentation/config/gpg.txt
> @@ -34,7 +34,7 @@ gpg.minTrustLevel::
> * `fully`
> * `ultimate`
>  
> -gpg.ssh.defaultKeyCommand:
> +gpg.ssh.defaultKeyCommand::
> This command that will be run when user.signingkey is not set and a ssh
> signature is requested. On successful exit a valid ssh public key is
> expected in the first line of its output. To automatically use the first
> -- 
> 2.33.0
> 
> 

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

end of thread, other threads:[~2021-12-17 16:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-17  9:05 [PATCH] docs: add missing colon to Documentation/config/gpg.txt Greg Hurrell
2021-12-17 15:44 ` Eric Sunshine
2021-12-17 15:48   ` Eric Sunshine
2021-12-17 16:11   ` [PATCH v2] " Greg Hurrell
2021-12-17 16:13   ` Greg Hurrell
2021-12-17 16:13   ` Greg Hurrell
2021-12-17 16:17   ` Greg Hurrell
2021-12-17 16:17     ` Greg Hurrell
2021-12-17 16:19       ` Greg Hurrell

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).