diff options
author | Taylor Blau <me@ttaylorr.com> | 2022-08-22 15:50:49 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-22 13:04:22 -0700 |
commit | 99e4d084ffc4c6f8cb28ec61fdbb44facdd47ac7 (patch) | |
tree | f7fdc3fd0311b33bbb681e045a0a4e9888508d7c /t/t9133-git-svn-nested-git-repo.sh | |
parent | cdf517be06b83c01d0411709c1fac0c2fc5c1a9b (diff) |
midx.c: avoid adding preferred objects twice
The last commit changes the behavior of midx.c's `get_sorted_objects()`
function to handle the case of writing a MIDX bitmap while reusing an
existing MIDX and changing the identity of the preferred pack
separately.
As part of this change, all objects from the (new) preferred pack are
added to the fanout table in a separate pass. Since these copies of the
objects all have their preferred bits set, any duplicates will be
resolved in their favor.
Importantly, this includes any copies of those same objects that come
from the existing MIDX. We know at the time of adding them that they'll
be redundant if their source pack is the (new) preferred one, so we can
avoid adding them to the list in this case.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9133-git-svn-nested-git-repo.sh')
0 files changed, 0 insertions, 0 deletions