Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-12-04 03:10:35 +0300
committerJunio C Hamano <gitster@pobox.com>2010-12-04 03:10:35 +0300
commit63ae595c6d60ac238e8a785bd811db41de74e93d (patch)
tree06a8969c011b95bea88ee34ccae75b1c5ff6dda0 /config.c
parent5e738ae820ec53c45895b029baa3a1f63e654b1b (diff)
parent72a5b561fc1c4286bc7c5b0693afc076af261e1f (diff)
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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.c b/config.c
index c63d6834e0..f138c34721 100644
--- a/config.c
+++ b/config.c
@@ -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;