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

Function order_objects

diffcore-order.c:89–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void order_objects(const char *orderfile, obj_path_fn_t obj_path,
90 struct obj_order *objs, int nr)
91{
92 int i;
93
94 if (!nr)
95 return;
96
97 prepare_order(orderfile);
98 for (i = 0; i < nr; i++) {
99 objs[i].orig_order = i;
100 objs[i].order = match_order(obj_path(objs[i].obj));
101 }
102 QSORT(objs, nr, compare_objs_order);
103}
104
105static const char *pair_pathtwo(void *obj)
106{

Callers 2

diffcore_orderFunction · 0.85
diff_tree_combinedFunction · 0.85

Calls 2

prepare_orderFunction · 0.85
match_orderFunction · 0.85

Tested by

no test coverage detected