]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Documentation: reword commit --no-gpg-sign
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Fri, 3 Apr 2020 10:28:05 +0000 (17:28 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 3 Apr 2020 18:37:22 +0000 (11:37 -0700)
Merge with --gpg-sign option, and clarify that --no-gpg-sign also
override earlier --gpg-sign.

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-commit.txt

index 13f653989f32f1231030d8e89a70cb6a96c9955f..a3baea32aedddfa00077adc5f2a2b36e38a5ea26 100644 (file)
@@ -348,13 +348,12 @@ changes to tracked files.
 
 -S[<keyid>]::
 --gpg-sign[=<keyid>]::
+--no-gpg-sign::
        GPG-sign commits. The `keyid` argument is optional and
        defaults to the committer identity; if specified, it must be
-       stuck to the option without a space.
-
---no-gpg-sign::
-       Countermand `commit.gpgSign` configuration variable that is
-       set to force each and every commit to be signed.
+       stuck to the option without a space. `--no-gpg-sign` is useful to
+       countermand both `commit.gpgSign` configuration variable, and
+       earlier `--gpg-sign`.
 
 \--::
        Do not interpret any more arguments as options.