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

Function tree_entry_order

merge-ort.c:3818–3827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3816};
3817
3818static int tree_entry_order(const void *a_, const void *b_)
3819{
3820 const struct string_list_item *a = a_;
3821 const struct string_list_item *b = b_;
3822
3823 const struct merged_info *ami = a->util;
3824 const struct merged_info *bmi = b->util;
3825 return base_name_compare(a->string, strlen(a->string), ami->result.mode,
3826 b->string, strlen(b->string), bmi->result.mode);
3827}
3828
3829static int write_tree(struct repository *repo,
3830 struct object_id *result_oid,

Callers

nothing calls this directly

Calls 1

base_name_compareFunction · 0.85

Tested by

no test coverage detected