summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 226406f)
raw | patch | inline | side by side (parent: 226406f)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 27 May 2005 22:51:52 +0000 (15:51 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sun, 29 May 2005 18:17:43 +0000 (11:17 -0700) |
Earlier it had a misguided attempt to include paths that matches
either source tree or destination tree after the rename/copy
detection. The new semantics will be that pathspec defines a
narrowed down world the diffcore operates in, so it should not
even look at where in the source tree the path came from.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
either source tree or destination tree after the rename/copy
detection. The new semantics will be that pathspec defines a
narrowed down world the diffcore operates in, so it should not
even look at where in the source tree the path came from.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diffcore-pathspec.c | patch | blob | history |
diff --git a/diffcore-pathspec.c b/diffcore-pathspec.c
index c460b2e56d3e6fe26f9e78ba3a877dc5417e8590..0392d66a55dc425d113d8969c33ccbe7d3c1497e 100644 (file)
--- a/diffcore-pathspec.c
+++ b/diffcore-pathspec.c
for (i = 0; i < q->nr; i++) {
struct diff_filepair *p = q->queue[i];
- if (matches_pathspec(p->one->path, spec, speccnt) ||
- matches_pathspec(p->two->path, spec, speccnt))
+ if (matches_pathspec(p->two->path, spec, speccnt))
diff_q(&outq, p);
else
diff_free_filepair(p);