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

Function cmp_dir_entry

dir.c:2795–2801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2793}
2794
2795int cmp_dir_entry(const void *p1, const void *p2)
2796{
2797 const struct dir_entry *e1 = *(const struct dir_entry **)p1;
2798 const struct dir_entry *e2 = *(const struct dir_entry **)p2;
2799
2800 return name_compare(e1->name, e1->len, e2->name, e2->len);
2801}
2802
2803/* check if *out lexically strictly contains *in */
2804int check_dir_entry_contains(const struct dir_entry *out, const struct dir_entry *in)

Callers 1

Calls 1

name_compareFunction · 0.85

Tested by

no test coverage detected