# [PATCH] docs: add missing colon to Documentation/config/gpg.txt

9 messages from 2021-12-17 to 2021-12-17. Participants: Greg Hurrell, Eric Sunshine.
Thread: https://gitlist.dev/t/57104

## Greg Hurrell, 2021-12-17 09:05

Subject: [PATCH] docs: add missing colon to Documentation/config/gpg.txt
Message-ID: <1e5dba11-fa01-44e1-b341-9d69bbdbbd39@www.fastmail.com>
URL: https://gitlist.dev/e/1e5dba11-fa01-44e1-b341-9d69bbdbbd39%40www.fastmail.com

```
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


```

## Eric Sunshine, 2021-12-17 15:44

Subject: Re: [PATCH] docs: add missing colon to Documentation/config/gpg.txt
Message-ID: <CAPig+cTfL3e28geHMG6aga-1zSSYSgXknQKO-62msn3LO=+iZA@mail.gmail.com>
URL: https://gitlist.dev/e/CAPig%2BcTfL3e28geHMG6aga-1zSSYSgXknQKO-62msn3LO%3D%2BiZA%40mail.gmail.com
In-Reply-To: <1e5dba11-fa01-44e1-b341-9d69bbdbbd39@www.fastmail.com>

```
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,/

```

## Eric Sunshine, 2021-12-17 15:48

Subject: Re: [PATCH] docs: add missing colon to Documentation/config/gpg.txt
Message-ID: <CAPig+cSd8wpFM4CgHr-BUn0cWSTPJr_C2ahUaSJ=XMbMjDv_0Q@mail.gmail.com>
URL: https://gitlist.dev/e/CAPig%2BcSd8wpFM4CgHr-BUn0cWSTPJr_C2ahUaSJ%3DXMbMjDv_0Q%40mail.gmail.com
In-Reply-To: <CAPig+cTfL3e28geHMG6aga-1zSSYSgXknQKO-62msn3LO=+iZA@mail.gmail.com>

```
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`

```

## Greg Hurrell, 2021-12-17 16:11

Subject: [PATCH v2] docs: add missing colon to Documentation/config/gpg.txt
Message-ID: <20211217161138.14771-1-greg@hurrell.net>
URL: https://gitlist.dev/e/20211217161138.14771-1-greg%40hurrell.net
In-Reply-To: <CAPig+cTfL3e28geHMG6aga-1zSSYSgXknQKO-62msn3LO=+iZA@mail.gmail.com>

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


```

## Greg Hurrell, 2021-12-17 16:13

Subject: [PATCH v2] docs: add missing colon to Documentation/config/gpg.txt
Message-ID: <20211217161320.15311-1-greg@hurrell.net>
URL: https://gitlist.dev/e/20211217161320.15311-1-greg%40hurrell.net
In-Reply-To: <CAPig+cTfL3e28geHMG6aga-1zSSYSgXknQKO-62msn3LO=+iZA@mail.gmail.com>

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


```

## Greg Hurrell, 2021-12-17 16:13

Subject: [PATCH v2] docs: add missing colon to Documentation/config/gpg.txt
Message-ID: <20211217161359.15360-1-greg@hurrell.net>
URL: https://gitlist.dev/e/20211217161359.15360-1-greg%40hurrell.net
In-Reply-To: <CAPig+cTfL3e28geHMG6aga-1zSSYSgXknQKO-62msn3LO=+iZA@mail.gmail.com>

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


```

## Greg Hurrell, 2021-12-17 16:17

Subject: [PATCH v2] docs: add missing colon to Documentation/config/gpg.txt
Message-ID: <20211217161718.15767-1-greg@hurrell.net>
URL: https://gitlist.dev/e/20211217161718.15767-1-greg%40hurrell.net
In-Reply-To: <CAPig+cTfL3e28geHMG6aga-1zSSYSgXknQKO-62msn3LO=+iZA@mail.gmail.com>

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


```

## Greg Hurrell, 2021-12-17 16:17

Subject: [PATCH v2] docs: add missing colon to Documentation/config/gpg.txt
Message-ID: <20211217161718.15767-2-greg@hurrell.net>
URL: https://gitlist.dev/e/20211217161718.15767-2-greg%40hurrell.net
In-Reply-To: <20211217161718.15767-1-greg@hurrell.net>

```
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


```

## Greg Hurrell, 2021-12-17 16:19

Subject: Re: [PATCH v2] docs: add missing colon to Documentation/config/gpg.txt
Message-ID: <c1f8f248-5e27-4b99-b186-9c0830dd22b6@www.fastmail.com>
URL: https://gitlist.dev/e/c1f8f248-5e27-4b99-b186-9c0830dd22b6%40www.fastmail.com
In-Reply-To: <20211217161718.15767-2-greg@hurrell.net>

```
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
> 
> 

```
