Commit 191379307b0c8d7c44e8b958cce3288b86b54d7e

Stefan Sperling 2018-06-11T22:14:50

improve comment

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/lib/commit_graph.c b/lib/commit_graph.c
index eb9d8bd..9f0c3c9 100644
--- a/lib/commit_graph.c
+++ b/lib/commit_graph.c
@@ -153,11 +153,9 @@ add_node_to_iter_list(struct got_commit_graph *graph,
 	}
 
 	/*
-	 * If a child node is known, being looping over the list there
-	 * instead of from the list head.
-	 * All parent commits *should* appear before their children unless
-	 * commit timestamps are broken (in which case the ordering of
-	 * commits will be broken in some way in any case).
+	 * If a child node is known, begin looping over the list there
+	 * instead of beginning from the list head. Parent commits are
+	 * traversed before their children.
 	 */
 	n = child_node ? child_node : TAILQ_FIRST(&graph->iter_list);