Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
commit-tree: add the commit.gpgsign option to sign all commits
[gitweb.git]
/
builtin
/
commit.c
diff --git
a/builtin/commit.c
b/builtin/commit.c
index 6ab4605cf5c2e6ef5efb37518c9c215bf8895f97..cffddf210807b756385dee6c3f4618d77e949a42 100644
(file)
--- 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)