diff options
Diffstat (limited to 'diff-tree.c')
-rw-r--r-- | diff-tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/diff-tree.c b/diff-tree.c index 8fb572936..59d12f2ba 100644 --- 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)) |