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>
This commit is contained in:
parent
9de9681549
commit
754980d023
@ -1327,7 +1327,7 @@ static void get_object_details(void)
|
|||||||
for (i = 0; i < nr_objects; i++) {
|
for (i = 0; i < nr_objects; i++) {
|
||||||
struct object_entry *entry = sorted_by_offset[i];
|
struct object_entry *entry = sorted_by_offset[i];
|
||||||
check_object(entry);
|
check_object(entry);
|
||||||
if (big_file_threshold <= entry->size)
|
if (big_file_threshold < entry->size)
|
||||||
entry->no_try_delta = 1;
|
entry->no_try_delta = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ static enum input_source istream_source(const unsigned char *sha1,
|
|||||||
case OI_LOOSE:
|
case OI_LOOSE:
|
||||||
return loose;
|
return loose;
|
||||||
case OI_PACKED:
|
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;
|
return pack_non_delta;
|
||||||
/* fallthru */
|
/* fallthru */
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user