summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f7c1512)
raw | patch | inline | side by side (parent: f7c1512)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 23 May 2005 07:25:15 +0000 (00:25 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Mon, 23 May 2005 18:49:30 +0000 (11:49 -0700) |
The pickaxe was expanding the blobs and searching in them even
when it should have already known that both sides are the same.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
when it should have already known that both sides are the same.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diffcore-pickaxe.c | patch | blob | history |
diff --git a/diffcore-pickaxe.c b/diffcore-pickaxe.c
index be1bbcc53f1d489dccd9e8b8ce4ad9c1c39c107b..fea62d51a090e22e43938245747e409ea7ede883 100644 (file)
--- a/diffcore-pickaxe.c
+++ b/diffcore-pickaxe.c
if (contains(p->one, needle, len))
diff_q(&outq, p);
}
- else if (contains(p->one, needle, len) !=
+ else if (!diff_unmodified_pair(p) &&
+ contains(p->one, needle, len) !=
contains(p->two, needle, len))
diff_q(&outq, p);
if (onum == outq.nr)