projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
diff-tree: fix up comparison of "interesting" sub-trees
[git.git]
/
diff-tree.c
diff --git
a/diff-tree.c
b/diff-tree.c
index
acd1524
..
3bc7480
100644
(file)
--- a/
diff-tree.c
+++ b/
diff-tree.c
@@
-209,6
+209,11
@@
static int interesting(void *tree, unsigned long size, const char *base)
if (pathlen > matchlen)
continue;
+ if (matchlen > pathlen) {
+ if (match[pathlen] != '/')
+ continue;
+ }
+
if (strncmp(path, match, pathlen))
continue;