Merge branch 'js/log-gpg'
authorJunio C Hamano <gitster@pobox.com>
Tue, 2 Apr 2013 22:10:49 +0000 (15:10 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Apr 2013 22:10:49 +0000 (15:10 -0700)
Teach "show/log" honor gpg.program configuration just like other
parts of the code that use GnuPG.

* js/log-gpg:
log: read gpg settings for signed commit verification

builtin/log.c
index 59de484bc29a38fb538e1146a91ddef708ebc3cc..0f318107e5732a08bc6f979633829ea958d8f9b0 100644 (file)
@@ -23,6 +23,7 @@
 #include "streaming.h"
 #include "version.h"
 #include "mailmap.h"
+#include "gpg-interface.h"
 
 /* Set a default date-time format for git log ("log.date" config variable) */
 static const char *default_date_mode = NULL;
@@ -367,6 +368,8 @@ static int git_log_config(const char *var, const char *value, void *cb)
 
        if (grep_config(var, value, cb) < 0)
                return -1;
+       if (git_gpg_config(var, value, cb) < 0)
+               return -1;
        return git_diff_ui_config(var, value, cb);
 }