MCPcopy Index your code
hub / github.com/git/git / pop_commit

Function pop_commit

commit.c:845–855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843}
844
845struct commit *pop_commit(struct commit_list **stack)
846{
847 struct commit_list *top = *stack;
848 struct commit *item = top ? top->item : NULL;
849
850 if (top) {
851 *stack = top->next;
852 free(top);
853 }
854 return item;
855}
856
857/*
858 * Topological sort support

Callers 15

merge_ort_internalFunction · 0.85
reach_filterFunction · 0.85
merge_bases_manyFunction · 0.85
mark_reachableFunction · 0.85
find_merge_parentsFunction · 0.85
try_to_simplify_commitFunction · 0.85
limit_listFunction · 0.85
simplify_mergesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected