| 47 | } |
| 48 | |
| 49 | static int subtree_name_cmp(const char *one, int onelen, |
| 50 | const char *two, int twolen) |
| 51 | { |
| 52 | if (onelen < twolen) |
| 53 | return -1; |
| 54 | if (twolen < onelen) |
| 55 | return 1; |
| 56 | return memcmp(one, two, onelen); |
| 57 | } |
| 58 | |
| 59 | int cache_tree_subtree_pos(struct cache_tree *it, const char *path, int pathlen) |
| 60 | { |
no outgoing calls
no test coverage detected