summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-03-20 18:45:47 -0800
committerJunio C Hamano <junkio@cox.net>2006-03-20 23:34:17 -0800
commit2f8acdb38e513e4b983209563faf4c1d38c4013e (patch)
tree2f6b03268adeaabee94444387ed6537c63f90b31 /config.c
parentac7490506418e3ec495775e432b7040a17449fa9 (diff)
downloadgit-2f8acdb38e513e4b983209563faf4c1d38c4013e.tar.gz
core.warnambiguousrefs: warns when "name" is used and both "name" branch and tag exists.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'config.c')
-rw-r--r--config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.c b/config.c
index 7dbdce1966..95ec34923d 100644
--- a/config.c
+++ b/config.c
@@ -232,6 +232,11 @@ int git_default_config(const char *var, const char *value)
return 0;
}
+ if (!strcmp(var, "core.warnambiguousrefs")) {
+ warn_ambiguous_refs = git_config_bool(var, value);
+ return 0;
+ }
+
if (!strcmp(var, "user.name")) {
strncpy(git_default_name, value, sizeof(git_default_name));
return 0;