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

Function next_topo_commit

revision.c:3913–3925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3911}
3912
3913static struct commit *next_topo_commit(struct rev_info *revs)
3914{
3915 struct commit *c;
3916 struct topo_walk_info *info = revs->topo_walk_info;
3917
3918 /* pop next off of topo_queue */
3919 c = prio_queue_get(&info->topo_queue);
3920
3921 if (c)
3922 *(indegree_slab_at(&info->indegree, c)) = 0;
3923
3924 return c;
3925}
3926
3927static void expand_topo_walk(struct rev_info *revs, struct commit *commit)
3928{

Callers 1

get_revision_1Function · 0.85

Calls 1

prio_queue_getFunction · 0.85

Tested by

no test coverage detected