summaryrefslogtreecommitdiff
path: root/Documentation/config/gpg.txt
diff options
context:
space:
mode:
authorFabian Stelzer <fs@gigacodes.de>2021-09-10 20:07:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-09-10 21:15:52 (GMT)
commitfd9e226776d1874af36b6b02fb2002b917af42fa (patch)
treeda80798e14ecfd3bd50b5cee32cf211b6e1c53f1 /Documentation/config/gpg.txt
parent29b315778e958417a411f02b6d4b5a0fc9d731e2 (diff)
downloadgit-fd9e226776d1874af36b6b02fb2002b917af42fa.zip
git-fd9e226776d1874af36b6b02fb2002b917af42fa.tar.gz
git-fd9e226776d1874af36b6b02fb2002b917af42fa.tar.bz2
ssh signing: retrieve a default key from ssh-agent
If user.signingkey is not set and a ssh signature is requested we call gpg.ssh.defaultKeyCommand (typically "ssh-add -L") and use the first key we get Signed-off-by: Fabian Stelzer <fs@gigacodes.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config/gpg.txt')
-rw-r--r--Documentation/config/gpg.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/config/gpg.txt b/Documentation/config/gpg.txt
index 88531b1..9b95dd2 100644
--- a/Documentation/config/gpg.txt
+++ b/Documentation/config/gpg.txt
@@ -33,3 +33,9 @@ gpg.minTrustLevel::
* `marginal`
* `fully`
* `ultimate`
+
+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
+ available key from your ssh-agent set this to "ssh-add -L".