summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9332607)
raw | patch | inline | side by side (parent: 9332607)
author | Nicolas Pitre <nico@cam.org> | |
Fri, 30 Jun 2006 03:44:52 +0000 (23:44 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 30 Jun 2006 06:48:29 +0000 (23:48 -0700) |
Without this there would never be a chance to improve packing for
previously undeltified objects.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
previously undeltified objects.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
pack-objects.c | patch | blob | history |
diff --git a/pack-objects.c b/pack-objects.c
index 6e1767652c886d48781f7fbeb9599d57b1de09c7..47da33baa3fb70a6a2f117afbcf4e7e08a5806be 100644 (file)
--- a/pack-objects.c
+++ b/pack-objects.c
/*
* 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;
/*