summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorAnselm Kruis <a.kruis@science-computing.de>2010-08-30 15:38:38 +0200
committerJunio C Hamano <gitster@pobox.com>2010-08-31 10:49:02 -0700
commitd3e7da8979f6ee3edd88fe53241095921d578285 (patch)
tree8d552c146371757f1fddfad301148d5265424c60 /config.c
parent64fdc08dac6694d1e754580e7acb82dfa4988bb9 (diff)
downloadgit-d3e7da8979f6ee3edd88fe53241095921d578285.tar.gz
Add a new option 'core.askpass'.
Setting this option has the same effect as setting the environment variable 'GIT_ASKPASS'. Signed-off-by: Knut Franke <k.franke@science-computing.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
-rw-r--r--config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.c b/config.c
index cdcf5836c6..ac55730fa7 100644
--- a/config.c
+++ b/config.c
@@ -560,6 +560,9 @@ static int git_default_core_config(const char *var, const char *value)
if (!strcmp(var, "core.editor"))
return git_config_string(&editor_program, var, value);
+ if (!strcmp(var, "core.askpass"))
+ return git_config_string(&askpass_program, var, value);
+
if (!strcmp(var, "core.excludesfile"))
return git_config_pathname(&excludes_file, var, value);