core.warnambiguousrefs: warns when "name" is used and both "name" branch and tag exists.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano
2006-03-20 18:45:47 -08:00
parent ac74905064
commit 2f8acdb38e
4 changed files with 27 additions and 3 deletions

View File

@ -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;