projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
diff-tree: don't match non-directories as partial pathnames
[git.git]
/
diff-tree.c
diff --git
a/diff-tree.c
b/diff-tree.c
index
8fb5729
..
59d12f2
100644
(file)
--- a/
diff-tree.c
+++ b/
diff-tree.c
@@
-204,6
+204,8
@@
static int interesting(void *tree, unsigned long size, const char *base)
if (matchlen > pathlen) {
if (match[pathlen] != '/')
continue;
+ if (!S_ISDIR(mode))
+ continue;
}
if (strncmp(path, match, pathlen))