summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-05-04 23:57:38 +0200
committerJunio C Hamano <gitster@pobox.com>2011-05-04 23:57:38 +0200
commitf28d2e33c64819d0425c426cd2c4511634096a40 (patch)
tree13d36e58177d1723b4759db99992b4ee03473216 /config.c
parentMerge branch 'mg/reflog-with-options' into maint (diff)
parentTeach core.bigfilethreashold to pack-objects (diff)
downloadgit-f28d2e33c64819d0425c426cd2c4511634096a40.tar.xz
git-f28d2e33c64819d0425c426cd2c4511634096a40.zip
Merge branch 'jc/pack-objects-bigfile' into maint
* jc/pack-objects-bigfile: Teach core.bigfilethreashold to pack-objects
Diffstat (limited to 'config.c')
-rw-r--r--config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.c b/config.c
index 0abcada938..d06fb19d51 100644
--- a/config.c
+++ b/config.c
@@ -567,6 +567,12 @@ static int git_default_core_config(const char *var, const char *value)
return 0;
}
+ if (!strcmp(var, "core.bigfilethreshold")) {
+ long n = git_config_int(var, value);
+ big_file_threshold = 0 < n ? n : 0;
+ return 0;
+ }
+
if (!strcmp(var, "core.packedgitlimit")) {
packed_git_limit = git_config_int(var, value);
return 0;