diff options
author | Mehul Jain <mehul.jain2029@gmail.com> | 2016-06-22 19:51:25 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-24 23:01:13 +0300 |
commit | aa3799996c310da756c7845950def4f6d51cccf3 (patch) | |
tree | 839cdd0fa4b6eb59d888fbc9f81f0724b9606c0b /t/t4202-log.sh | |
parent | aefc81ad38b3a6fc88a0e8db6fafe75692f0d4b3 (diff) |
log: add "--no-show-signature" command line option
If an user creates an alias with "--show-signature" early in command
line, e.g.
[alias] logss = log --show-signature
then there is no way to countermand it through command line.
Teach git-log and related commands about "--no-show-signature" command
line option. This will make "git logss --no-show-signature" run
without showing GPG signature.
Signed-off-by: Mehul Jain <mehul.jain2029@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4202-log.sh')
-rwxr-xr-x | t/t4202-log.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t4202-log.sh b/t/t4202-log.sh index b3d618c43d..449a5275d4 100755 --- a/t/t4202-log.sh +++ b/t/t4202-log.sh @@ -893,6 +893,11 @@ test_expect_success GPG 'log --graph --show-signature for merged tag' ' grep "^| | gpg: Good signature" actual ' +test_expect_success GPG '--no-show-signature overrides --show-signature' ' + git log -1 --show-signature --no-show-signature signed >actual && + ! grep "^gpg:" actual +' + test_expect_success 'log --graph --no-walk is forbidden' ' test_must_fail git log --graph --no-walk ' |