summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorMehul Jain <mehul.jain2029@gmail.com>2016-06-22 22:21:25 +0530
committerJunio C Hamano <gitster@pobox.com>2016-06-24 13:01:13 -0700
commitaa3799996c310da756c7845950def4f6d51cccf3 (patch)
tree839cdd0fa4b6eb59d888fbc9f81f0724b9606c0b /revision.c
parentaefc81ad38b3a6fc88a0e8db6fafe75692f0d4b3 (diff)
downloadgit-aa3799996c310da756c7845950def4f6d51cccf3.tar.gz
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 'revision.c')
-rw-r--r--revision.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/revision.c b/revision.c
index d30d1c4f80..3546ff9c1b 100644
--- a/revision.c
+++ b/revision.c
@@ -1871,6 +1871,8 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg
revs->notes_opt.use_default_notes = 1;
} else if (!strcmp(arg, "--show-signature")) {
revs->show_signature = 1;
+ } else if (!strcmp(arg, "--no-show-signature")) {
+ revs->show_signature = 0;
} else if (!strcmp(arg, "--show-linear-break") ||
starts_with(arg, "--show-linear-break=")) {
if (starts_with(arg, "--show-linear-break="))