Git development
 help / color / mirror / Atom feed
* PATCH/RFC] allow delta data reuse even if base object is a preferred base
@ 2006-09-27 19:42 Nicolas Pitre
  2006-09-27 19:53 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Pitre @ 2006-09-27 19:42 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git


Signed-off-by: Nicolas Pitre <nico@cam.org>

---

Any reason why this couldn't be done?

When I reworked that code I preserved the existing logic wrt preferred 
base.  However I could not find a reason why it was that way.  Hence 
this patch.

diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index 6db97b6..ee5f031 100644
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
@@ -989,7 +988,7 @@ static void check_object(struct object_e
 		unuse_packed_git(p);
 		entry->in_pack_header_size = used;
 
-		if (base_entry && !base_entry->preferred_base) {
+		if (base_entry) {
 
 			/* Depth value does not matter - find_deltas()
 			 * will never consider reused delta as the

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-27 19:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-27 19:42 PATCH/RFC] allow delta data reuse even if base object is a preferred base Nicolas Pitre
2006-09-27 19:53 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox