diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-04-27 11:36:41 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-04-27 11:36:41 -0700 |
commit | 9cedd16c62e12521f35b44e10bba80bfe261e69c (patch) | |
tree | 5bc12da870a1dc90ce3cbfc715144dc4ce6e9c84 /builtin | |
parent | 698a9ab3f104b369e41ad26ad0bdaedc3a1d5f4f (diff) | |
parent | 15366280c27e922ace0ba7d33cb3504dc59d742e (diff) | |
download | git-9cedd16c62e12521f35b44e10bba80bfe261e69c.tar.gz |
Merge branch 'jc/pack-objects-bigfile'
* jc/pack-objects-bigfile:
Teach core.bigfilethreashold to pack-objects
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/pack-objects.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index b0503b202a..f402a843bb 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -1142,8 +1142,12 @@ static void get_object_details(void) sorted_by_offset[i] = objects + i; qsort(sorted_by_offset, nr_objects, sizeof(*sorted_by_offset), pack_offset_sort); - for (i = 0; i < nr_objects; i++) - check_object(sorted_by_offset[i]); + for (i = 0; i < nr_objects; i++) { + struct object_entry *entry = sorted_by_offset[i]; + check_object(entry); + if (big_file_threshold <= entry->size) + entry->no_try_delta = 1; + } free(sorted_by_offset); } |