summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-05-23 06:04:49 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-05-23 06:04:49 (GMT)
commit6315d52a84e4e6016acf7095ce4c88abffad6496 (patch)
tree5fb83bdf65ffd3dd7462efccc8de0aa91880db7c
parenta74db82e15cd8a2c53a4a83e9a36dc7bf7a4c750 (diff)
downloadgit-6315d52a84e4e6016acf7095ce4c88abffad6496.zip
git-6315d52a84e4e6016acf7095ce4c88abffad6496.tar.gz
git-6315d52a84e4e6016acf7095ce4c88abffad6496.tar.bz2
builtin-pack-objects: remove unnecessary code for no-delta
As we do not consider objects marked as "no-delta" early, there is no point to check if the other objects already in the delta window are marked as such -- "no-delta" objects will not enter the window to begin with. Pointed out by Nico. Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--builtin-pack-objects.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index 225d311..eca130f 100644
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
@@ -1409,8 +1409,6 @@ static void find_deltas(struct object_entry **list, int window, int depth)
m = array + other_idx;
if (!m->entry)
break;
- if (m->entry->no_try_delta)
- continue;
if (try_delta(n, m, max_depth) < 0)
break;
}