merge-base: use the new lookup_commit_reference() helper function
[gitweb.git] / diff-tree.c
index 8fb5729363e4d85ff0a88173f05140bab43aa42f..59d12f2ba1325bad77dd062936c20cd9cc4d602f 100644 (file)
@@ -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))