Commit 9f57848c05f3609670a9890cf40c27c72fbc8e94

Stefan Sperling 2018-11-19T00:20:14

remove unnecessary graph search in advance_branch()

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/commit_graph.c b/lib/commit_graph.c
index c092627..6425321 100644
--- a/lib/commit_graph.c
+++ b/lib/commit_graph.c
@@ -257,8 +257,6 @@ advance_branch(struct got_commit_graph *graph,
 		SIMPLEQ_FOREACH(qid, &commit->parent_ids, entry) {
 			struct got_object_id *id;
 
-			if (got_object_idset_get(graph->node_ids, qid->id))
-				continue; /* parent already traversed */
 			if (got_object_idset_get(graph->open_branches, qid->id))
 				continue;