projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] New git-apply test cases for patches with mulitple fragments.
[git.git]
/
read-cache.c
diff --git
a/read-cache.c
b/read-cache.c
index
5820f18
..
ced5973
100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-191,6
+191,8
@@
int ce_path_match(const struct cache_entry *ce, const char **pathspec)
return 1;
if (name[matchlen] == '/' || !name[matchlen])
return 1;
+ if (!matchlen)
+ return 1;
}
return 0;
}