diff options
author | Junio C Hamano <junkio@cox.net> | 2006-03-20 18:45:47 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-03-20 23:34:17 -0800 |
commit | 2f8acdb38e513e4b983209563faf4c1d38c4013e (patch) | |
tree | 2f6b03268adeaabee94444387ed6537c63f90b31 /config.c | |
parent | ac7490506418e3ec495775e432b7040a17449fa9 (diff) | |
download | git-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.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; |