tag: add tag.gpgSign config option to force all tags be GPG-signed
commit1c6b565f896c27dc7c52aa3af9c7dcfc7934e8fe
authorTigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Wed, 5 Jun 2019 21:33:21 +0000 (5 23:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Jun 2019 21:39:28 +0000 (5 14:39 -0700)
tree350d0bf7a190a6cd5527ea5afc8520354ca06ab2
parent74583d89127e21255c12dd3c8a3bf60b497d7d03
tag: add tag.gpgSign config option to force all tags be GPG-signed

As many CI/CD tools don't allow to control command line options when
executing `git tag` command, a default value in the configuration file
will allow to enforce tag signing if required.

The new config-file option tag.gpgSign is added to define default behavior
of tag signings. To override default behavior the command line option -s,
--sign and --no-sign can be used:

    $ git tag -m "commit message"

will generate a GPG signed tag if tag.gpgSign option is true, while

    $ git tag --no-sign -m "commit message"

will skip the signing step.

Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/tag.txt
Documentation/git-tag.txt
builtin/tag.c
t/t7004-tag.sh