MCPcopy Create free account
hub / github.com/git/git / subtree_name_cmp

Function subtree_name_cmp

cache-tree.c:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49static 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
59int cache_tree_subtree_pos(struct cache_tree *it, const char *path, int pathlen)
60{

Callers 2

cache_tree_subtree_posFunction · 0.85
write_oneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected