Commit 8dbbd14e authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Junio C Hamano

consider previous pack undeltified object state only when reusing delta data

Without this there would never be a chance to improve packing for
previously undeltified objects.
Signed-off-by: default avatarNicolas Pitre <nico@cam.org>
Signed-off-by: default avatarJunio C Hamano <junkio@cox.net>
parent 93326071
......@@ -989,9 +989,10 @@ static int try_delta(struct unpacked *trg, struct unpacked *src,
/*
* We do not bother to try a delta that we discarded
* on an earlier try.
* on an earlier try, but only when reusing delta data.
*/
if (trg_entry->in_pack && trg_entry->in_pack == src_entry->in_pack)
if (!no_reuse_delta && trg_entry->in_pack &&
trg_entry->in_pack == src_entry->in_pack)
return 0;
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment