diff options
-rw-r--r-- | diff-tree.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/diff-tree.c b/diff-tree.c index acd152434..3bc748094 100644 --- 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; |