Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/test-3402'
author
Junio C Hamano
<junkio@cox.net>
Fri, 30 Jun 2006 06:47:59 +0000
(23:47 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Fri, 30 Jun 2006 06:47:59 +0000
(23:47 -0700)
* jc/test-3402:
Racy GIT (part #3)
pack-objects.c
patch
|
blob
|
history
raw
(from parent 2:
cc7d5bc
)
diff --git
a/pack-objects.c
b/pack-objects.c
index bed2497b7974bed96a6ac9478807059cb8de17cb..6e1767652c886d48781f7fbeb9599d57b1de09c7 100644
(file)
--- a/
pack-objects.c
+++ b/
pack-objects.c
@@
-987,6
+987,13
@@
static int try_delta(struct unpacked *trg, struct unpacked *src,
if (trg_entry->preferred_base)
return -1;
+ /*
+ * We do not bother to try a delta that we discarded
+ * on an earlier try.
+ */
+ if (trg_entry->in_pack && trg_entry->in_pack == src_entry->in_pack)
+ return 0;
+
/*
* If the current object is at pack edge, take the depth the
* objects that depend on the current object into account --