diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2012-05-16 19:02:09 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-05-18 14:21:19 -0700 |
commit | 754980d02386e09d0277d22284375686c197ddbd (patch) | |
tree | 4c869c6395888700a3cc34eae72af0575a121069 | |
parent | Merge git://github.com/git-l10n/git-po (diff) | |
download | tgif-754980d02386e09d0277d22284375686c197ddbd.tar.xz |
pack-objects, streaming: turn "xx >= big_file_threshold" to ".. > .."
This is because all other places do "xx > big_file_threshold"
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | builtin/pack-objects.c | 2 | ||||
-rw-r--r-- | streaming.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index 1861093e9d..b2e0940c7a 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -1327,7 +1327,7 @@ static void get_object_details(void) for (i = 0; i < nr_objects; i++) { struct object_entry *entry = sorted_by_offset[i]; check_object(entry); - if (big_file_threshold <= entry->size) + if (big_file_threshold < entry->size) entry->no_try_delta = 1; } diff --git a/streaming.c b/streaming.c index 3a3cd1206a..4d978e54e4 100644 --- a/streaming.c +++ b/streaming.c @@ -121,7 +121,7 @@ static enum input_source istream_source(const unsigned char *sha1, case OI_LOOSE: return loose; case OI_PACKED: - if (!oi->u.packed.is_delta && big_file_threshold <= size) + if (!oi->u.packed.is_delta && big_file_threshold < size) return pack_non_delta; /* fallthru */ default: |