Browse Source

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>
maint
Nguyễn Thái Ngọc Duy 13 years ago committed by Junio C Hamano
parent
commit
754980d023
  1. 2
      builtin/pack-objects.c
  2. 2
      streaming.c

2
builtin/pack-objects.c

@ -1327,7 +1327,7 @@ static void get_object_details(void) @@ -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;
}


2
streaming.c

@ -121,7 +121,7 @@ static enum input_source istream_source(const unsigned char *sha1, @@ -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:

Loading…
Cancel
Save