Skip to content

Commit

Permalink
pack-objects, streaming: turn "xx >= big_file_threshold" to ".. > .."
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nguyễn Thái Ngọc Duy authored and Junio C Hamano committed May 18, 2012
1 parent 9de9681 commit 754980d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builtin/pack-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion streaming.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 754980d

Please sign in to comment.