commit - 94489f7d96343ddd926acbfe5d6b98bc759d60ca
commit + 48595de13ae9d5618864199e01c22c837101f905
blob - 67cc1c5d1595cad48cd0998e6137e955e9207261
blob + c908949d9d3336c966421d82c17507a4926a25ef
--- lib/commit_graph.c
+++ lib/commit_graph.c
{
struct got_commit_graph_node *n, *next;
- if (TAILQ_EMPTY(&graph->iter_list)) {
- TAILQ_INSERT_HEAD(&graph->iter_list, node, entry);
- return;
- }
-
n = TAILQ_FIRST(&graph->iter_list);
/* Ensure that an iteration in progress will see this new commit. */
while (n) {