diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-04-05 10:44:11 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-04-05 20:25:49 -0700 |
commit | 15366280c27e922ace0ba7d33cb3504dc59d742e (patch) | |
tree | fe512d5fabebbb2257b818e9cd3a530eb163e599 /config.c | |
parent | 7ed863a85a6ce2c4ac4476848310b8f917ab41f9 (diff) | |
download | git-15366280c27e922ace0ba7d33cb3504dc59d742e.tar.gz |
Teach core.bigfilethreashold to pack-objects
The pack-objects command should take notice of the object file and
refrain from attempting to delta large ones, to be consistent with
the fast-import command.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |