config.txt: move gpg.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Oct 27, 2018 at 08:23 UTC ea555d048a136f25f93bd91584d23a51adea1c3c
2 files changed +21 -20
Documentation/config.txt
+1 -20
@@ -341,26 +341,7 @@ include::config/gitweb.txt[]
341
342 include::config/grep.txt[]
343
344 -gpg.program::
345 - Use this custom program instead of "`gpg`" found on `$PATH` when
346 - making or verifying a PGP signature. The program must support the
347 - same command-line interface as GPG, namely, to verify a detached
348 - signature, "`gpg --verify $file - <$signature`" is run, and the
349 - program is expected to signal a good signature by exiting with
350 - code 0, and to generate an ASCII-armored detached signature, the
351 - standard input of "`gpg -bsau $key`" is fed with the contents to be
352 - signed, and the program is expected to send the result to its
353 - standard output.
354 -
355 -gpg.format::
356 - Specifies which key format to use when signing with `--gpg-sign`.
357 - Default is "openpgp" and another possible value is "x509".
358 -
359 -gpg.<format>.program::
360 - Use this to customize the program used for the signing format you
361 - chose. (see `gpg.program` and `gpg.format`) `gpg.program` can still
362 - be used as a legacy synonym for `gpg.openpgp.program`. The default
363 - value for `gpg.x509.program` is "gpgsm".
344 +include::config/gpg.txt[]
345
346 include::gui-config.txt[]
347
Documentation/config/gpg.txt new
+20
@@ -0,0 +1,20 @@
1 +gpg.program::
2 + Use this custom program instead of "`gpg`" found on `$PATH` when
3 + making or verifying a PGP signature. The program must support the
4 + same command-line interface as GPG, namely, to verify a detached
5 + signature, "`gpg --verify $file - <$signature`" is run, and the
6 + program is expected to signal a good signature by exiting with
7 + code 0, and to generate an ASCII-armored detached signature, the
8 + standard input of "`gpg -bsau $key`" is fed with the contents to be
9 + signed, and the program is expected to send the result to its
10 + standard output.
11 +
12 +gpg.format::
13 + Specifies which key format to use when signing with `--gpg-sign`.
14 + Default is "openpgp" and another possible value is "x509".
15 +
16 +gpg.<format>.program::
17 + Use this to customize the program used for the signing format you
18 + chose. (see `gpg.program` and `gpg.format`) `gpg.program` can still
19 + be used as a legacy synonym for `gpg.openpgp.program`. The default
20 + value for `gpg.x509.program` is "gpgsm".