diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-12-03 16:10:35 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-12-03 16:10:35 -0800 |
commit | 63ae595c6d60ac238e8a785bd811db41de74e93d (patch) | |
tree | 06a8969c011b95bea88ee34ccae75b1c5ff6dda0 /config.c | |
parent | 5e738ae820ec53c45895b029baa3a1f63e654b1b (diff) | |
parent | 72a5b561fc1c4286bc7c5b0693afc076af261e1f (diff) | |
download | git-63ae595c6d60ac238e8a785bd811db41de74e93d.tar.gz |
Merge branch 'jc/abbrev-guard'
* jc/abbrev-guard:
core.abbrevguard: Ensure short object names stay unique a bit longer
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -489,6 +489,13 @@ static int git_default_core_config(const char *var, const char *value) return 0; } + if (!strcmp(var, "core.abbrevguard")) { + unique_abbrev_extra_length = git_config_int(var, value); + if (unique_abbrev_extra_length < 0) + unique_abbrev_extra_length = 0; + return 0; + } + if (!strcmp(var, "core.bare")) { is_bare_repository_cfg = git_config_bool(var, value); return 0; |