log: read gpg settings for signed commit verification

"show --show-signature" and "log --show-signature" do not read the gpg.program setting from git config, even though, commit signing, tag signing, and tag verification honor it. Signed-off-by: Jacob Sarvis <jsarvis@openspan.com> Signed-off-by: Hans Brigman <hbrigman@openspan.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jacob Sarvis committed Mar 27, 2013 at 10:13 UTC 6005dbb9bf21d10b209f7924e305bd04b9ab56d2
1 file changed +3
builtin/log.c
+3
@@ -23,6 +23,7 @@
23 #include "streaming.h"
24 #include "version.h"
25 #include "mailmap.h"
26 +#include "gpg-interface.h"
27
28 /* Set a default date-time format for git log ("log.date" config variable) */
29 static const char *default_date_mode = NULL;
@@ -367,6 +368,8 @@ static int git_log_config(const char *var, const char *value, void *cb)
368
369 if (grep_config(var, value, cb) < 0)
370 return -1;
371 + if (git_gpg_config(var, value, cb) < 0)
372 + return -1;
373 return git_diff_ui_config(var, value, cb);
374 }
375