summaryrefslogtreecommitdiff
path: root/builtin/pack-redundant.c
diff options
context:
space:
mode:
authorSun Chao <sunchao9@huawei.com>2019-02-02 13:30:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-02-04 22:18:24 (GMT)
commit8822859363a86ade287c7deb07224af345a699f4 (patch)
tree4d2da91db60711009084a15f282a396c8b695d44 /builtin/pack-redundant.c
parent301117764041101ae228e8e33c12c0b232b06408 (diff)
downloadgit-8822859363a86ade287c7deb07224af345a699f4.zip
git-8822859363a86ade287c7deb07224af345a699f4.tar.gz
git-8822859363a86ade287c7deb07224af345a699f4.tar.bz2
pack-redundant: delete redundant code
The objects in alt-odb are removed from `all_objects` twice in `load_all_objects` and `scan_alt_odb_packs`, remove it from the later function. Signed-off-by: Sun Chao <sunchao9@huawei.com> Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/pack-redundant.c')
-rw-r--r--builtin/pack-redundant.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin/pack-redundant.c b/builtin/pack-redundant.c
index f7dab0e..4a06f05 100644
--- a/builtin/pack-redundant.c
+++ b/builtin/pack-redundant.c
@@ -545,7 +545,6 @@ static void scan_alt_odb_packs(void)
alt->all_objects);
local = local->next;
}
- llist_sorted_difference_inplace(all_objects, alt->all_objects);
alt = alt->next;
}
}