Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Show the branch name more prominently in "git status".
[gitweb.git]
/
read-cache.c
diff --git
a/read-cache.c
b/read-cache.c
index 5820f18d9a79fd83ff5a418a5dfc68bbf7c5c354..ced597318e783ab08b73c88f8b724be51f3b3dec 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;
}