summaryrefslogtreecommitdiff
path: root/repo-config.c
diff options
context:
space:
mode:
authorPetr Baudis <pasky@suse.cz>2006-07-03 22:47:55 +0200
committerJunio C Hamano <junkio@cox.net>2006-07-03 18:35:19 -0700
commitdc2613de8633cecb1c0759657eadf6a637cebfa5 (patch)
tree2921e9bca0645ac65dd9c8a3207e6d395bca9e8e /repo-config.c
parent6fcca938b05c33bcd8b502d6b6f178e377609fa3 (diff)
downloadgit-dc2613de8633cecb1c0759657eadf6a637cebfa5.tar.gz
Git.pm: Add config() method
This accessor will retrieve value(s) of the given configuration variable. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'repo-config.c')
-rw-r--r--repo-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/repo-config.c b/repo-config.c
index 743f02b7de..c7ed0ac9c9 100644
--- a/repo-config.c
+++ b/repo-config.c
@@ -118,7 +118,7 @@ static int get_value(const char* key_, const char* regex_)
if (do_all)
ret = !seen;
else
- ret = (seen == 1) ? 0 : 1;
+ ret = (seen == 1) ? 0 : seen > 1 ? 2 : 1;
free_strings:
if (repo_config)