Skip to contentSkip to conversation

docs: add missing colon to Documentation/config/gpg.txt

PATCH Superseded Greg Hurrell 2 participants 9 messages Dec 17, 2021 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: add missing colon to Documentation/config/gpg.txt

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(-)
Documentation/config/gpg.txt +1 -1
index 4f30c7dbdd..94eba373cc 100644
@@ -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
Signature · 1 line
2.33.0
#1 lore raw
Quoted 9 lines · Greg Hurrell

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.

Documentation/config/gpg.txt gpg.minTrustLevel:: · line 37

Quoted 7 lines
Documentation/config/gpg.txt +1 -1
@@ -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,/

#2 lore raw
Quoted 7 lines · Eric Sunshine
Quoted 4 lines

+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:

Quoted 8 lines

* "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`
#3 lore raw

PATCH v2 1/1 docs: add missing colon to Documentation/config/gpg.txt

In reply to 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.

#4 lore raw

PATCH v2 1/1 docs: add missing colon to Documentation/config/gpg.txt

In reply to 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.

#5 lore raw

PATCH v2 1/1 docs: add missing colon to Documentation/config/gpg.txt

In reply to 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.

#6 lore raw

PATCH v2 1/1 docs: add missing colon to Documentation/config/gpg.txt

In reply to 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.

#7 lore raw

PATCH v2 1/1 docs: add missing colon to Documentation/config/gpg.txt

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.

---
 Documentation/config/gpg.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/config/gpg.txt +1 -1
index 4f30c7dbdd..94eba373cc 100644
@@ -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
Signature · 1 line
2.33.0
#8 lore raw

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.

🤦

Quoted 26 lines · 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.

---
Documentation/config/gpg.txt | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/config/gpg.txt +1 -1
index 4f30c7dbdd..94eba373cc 100644
@@ -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

Signature · 1 line
2.33.0