diff options
author | Junio C Hamano <junkio@cox.net> | 2006-03-21 03:45:47 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-03-21 08:34:17 +0100 |
commit | 2f8acdb38e513e4b983209563faf4c1d38c4013e (patch) | |
tree | 2f6b03268adeaabee94444387ed6537c63f90b31 /config.c | |
parent | contrib/git-svn: allow rebuild to work on non-linear remote heads (diff) | |
download | git-2f8acdb38e513e4b983209563faf4c1d38c4013e.tar.xz git-2f8acdb38e513e4b983209563faf4c1d38c4013e.zip |
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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |