Merge branch 'ew/decline-core-abbrev'
The configuration variable 'core.abbrev' can be set to 'no' to force no abbreviation regardless of the hash algorithm. * ew/decline-core-abbrev: core.abbrev=no disables abbreviations
This commit is contained in:
2
config.c
2
config.c
@ -1217,6 +1217,8 @@ static int git_default_core_config(const char *var, const char *value, void *cb)
|
||||
return config_error_nonbool(var);
|
||||
if (!strcasecmp(value, "auto"))
|
||||
default_abbrev = -1;
|
||||
else if (!git_parse_maybe_bool_text(value))
|
||||
default_abbrev = the_hash_algo->hexsz;
|
||||
else {
|
||||
int abbrev = git_config_int(var, value);
|
||||
if (abbrev < minimum_abbrev || abbrev > the_hash_algo->hexsz)
|
||||
|
||||
Reference in New Issue
Block a user