Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] Performance fix for pickaxe.
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>
diffcore-pickaxe.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
f7c1512
)
diff --git
a/diffcore-pickaxe.c
b/diffcore-pickaxe.c
index be1bbcc53f1d489dccd9e8b8ce4ad9c1c39c107b..fea62d51a090e22e43938245747e409ea7ede883 100644
(file)
--- a/
diffcore-pickaxe.c
+++ b/
diffcore-pickaxe.c
@@
-44,7
+44,8
@@
void diffcore_pickaxe(const char *needle)
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)