diff options
author | Nicolas Vigier <boklm@mars-attacks.org> | 2013-11-05 00:14:41 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-02-24 14:50:56 -0800 |
commit | d95bfb12b87a0be9666f806683e198df9738d0e7 (patch) | |
tree | 37908b19d235a3c94dbf375ea457d9e0249c5319 /builtin/commit.c | |
parent | f26f72de159d7ade2fbe8b48734ce98c1aba4d72 (diff) | |
download | git-d95bfb12b87a0be9666f806683e198df9738d0e7.tar.gz git-d95bfb12b87a0be9666f806683e198df9738d0e7.tar.xz |
commit-tree: add the commit.gpgsign option to sign all commits
If you want to GPG sign all your commits, you have to add the -S option
all the time. The commit.gpgsign config option allows to sign all
commits automatically.
Signed-off-by: Nicolas Vigier <boklm@mars-attacks.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
-rw-r--r-- | builtin/commit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/commit.c b/builtin/commit.c index 6ab4605cf..cffddf210 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -1406,6 +1406,10 @@ static int git_commit_config(const char *k, const char *v, void *cb) } if (!strcmp(k, "commit.cleanup")) return git_config_string(&cleanup_arg, k, v); + if (!strcmp(k, "commit.gpgsign")) { + sign_commit = git_config_bool(k, v) ? "" : NULL; + return 0; + } status = git_gpg_config(k, v, NULL); if (status) |