gpg(docs): use correct --verify syntax
authorRobert Morgan <robert.thomas.morgan@gmail.com>
Fri, 12 Jul 2019 15:33:57 +0000 (08:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jul 2019 18:14:22 +0000 (11:14 -0700)
The gpg --verify usage example within the 'gpg.program' variable
reference provides an incorrect example of the gpg --verify command
arguments.

The command argument order, when providing both a detached signature
and data, should be signature first and data second:
https://gnupg.org/documentation/manuals/gnupg/Operational-GPG-Commands.html

Signed-off-by: Robert Morgan <robert.thomas.morgan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/gpg.txt
index 590fe0d4baa1740bc1f2abc38ce73340adf59ed6..5378a528b0b7cb1586b8c898b8918f244b9123b5 100644 (file)
@@ -2,7 +2,7 @@ gpg.program::
        Use this custom program instead of "`gpg`" found on `$PATH` when
        making or verifying a PGP signature. The program must support the
        same command-line interface as GPG, namely, to verify a detached
-       signature, "`gpg --verify $file - <$signature`" is run, and the
+       signature, "`gpg --verify $signature - <$file`" is run, and the
        program is expected to signal a good signature by exiting with
        code 0, and to generate an ASCII-armored detached signature, the
        standard input of "`gpg -bsau $key`" is fed with the contents to be