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

Function diffcore_order

diffcore-order.c:112–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void diffcore_order(const char *orderfile)
113{
114 struct diff_queue_struct *q = &diff_queued_diff;
115 struct obj_order *o;
116 int i;
117
118 if (!q->nr)
119 return;
120
121 ALLOC_ARRAY(o, q->nr);
122 for (i = 0; i < q->nr; i++)
123 o[i].obj = q->queue[i];
124 order_objects(orderfile, pair_pathtwo, o, q->nr);
125 for (i = 0; i < q->nr; i++)
126 q->queue[i] = o[i].obj;
127 free(o);
128 return;
129}

Callers 3

find_paths_genericFunction · 0.85
diff_tree_combinedFunction · 0.85
diffcore_stdFunction · 0.85

Calls 1

order_objectsFunction · 0.85

Tested by

no test coverage detected