| 843 | } |
| 844 | |
| 845 | struct 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 |
no outgoing calls
no test coverage detected