commit - 473cd2ee73f447fd177f9c48f17fb6e8b2f5b533
commit + 0279329dccffda40b130fe1a08f888694df1238f
blob - af1a4ad687b6df528594ca423dfba16083a969f0
blob + 5f09ada324b00bff599343c546bea9dacc1e0e7f
--- cvg/cvg.c
+++ cvg/cvg.c
if (err)
goto done;
- err = got_commit_graph_iter_start(graph, head_commit_id, repo,
+ err = got_commit_graph_bfsort(graph, head_commit_id, repo,
check_cancelled, NULL);
if (err)
goto done;
err = got_commit_graph_open(&graph, path, !log_branches);
if (err)
return err;
- err = got_commit_graph_iter_start(graph, root_id, repo,
+ err = got_commit_graph_bfsort(graph, root_id, repo,
check_cancelled, NULL);
if (err)
goto done;
blob - 744c27831da9fae5b3fc6abdfcc2c92d92dfbfc1
blob + f003d91a0b27eaff452754fc7b1c0d9579821eb3
--- got/got.c
+++ got/got.c
if (err)
goto done;
- err = got_commit_graph_iter_start(graph, head_commit_id, repo,
+ err = got_commit_graph_bfsort(graph, head_commit_id, repo,
check_cancelled, NULL);
if (err)
goto done;
err = got_commit_graph_toposort(graph, root_id, repo,
check_cancelled, NULL);
} else {
- err = got_commit_graph_iter_start(graph, root_id, repo,
+ err = got_commit_graph_bfsort(graph, root_id, repo,
check_cancelled, NULL);
}
if (err)
if (err)
return err;
- err = got_commit_graph_iter_start(graph, iter_start_id, repo,
+ err = got_commit_graph_bfsort(graph, iter_start_id, repo,
check_cancelled, NULL);
if (err)
goto done;
if (err)
return err;
- err = got_commit_graph_iter_start(graph, base_commit_id,
+ err = got_commit_graph_bfsort(graph, base_commit_id,
repo, check_cancelled, NULL);
if (err)
goto done;
blob - cbcf820139e46dade5b52bbe6e2a5bbd3815b8ee
blob + baf885a2ff3bb7c807406742e7ae48aca41aa678
--- gotd/repo_write.c
+++ gotd/repo_write.c
err = got_commit_graph_open(&graph, "/", 1);
if (err)
return err;
- err = got_commit_graph_iter_start(graph, root_id, repo,
+ err = got_commit_graph_bfsort(graph, root_id, repo,
check_cancelled, NULL);
if (err)
goto done;
blob - 169c3b1748004171e8a647860aeeb51664cae1cb
blob + c76dcd4645b83f87a2252fbd462d25a8ad081d9c
--- gotwebd/got_operations.c
+++ gotwebd/got_operations.c
goto done;
}
- error = got_commit_graph_iter_start(graph, id, repo, NULL, NULL);
+ error = got_commit_graph_bfsort(graph, id, repo, NULL, NULL);
if (error)
goto done;
blob - a425d8d817ab860cb50f4d849945ba8fe207c0fd
blob + 2ae96c907d138e8c9851d99c54375d81566eda8f
--- include/got_commit_graph.h
+++ include/got_commit_graph.h
const char *, int);
void got_commit_graph_close(struct got_commit_graph *);
-const struct got_error *got_commit_graph_iter_start(
+const struct got_error *got_commit_graph_bfsort(
struct got_commit_graph *, struct got_object_id *, struct got_repository *,
got_cancel_cb, void *);
const struct got_error *got_commit_graph_toposort(struct got_commit_graph *,
blob - 5025bfe21dc3881b31112c90ba5987b035d9eae6
blob + ddb4cb1f773cfe8dfcf75af7cffc902778dfd752
--- lib/blame.c
+++ lib/blame.c
if (err)
goto done;
- err = got_commit_graph_iter_start(graph, start_commit_id, repo,
+ err = got_commit_graph_bfsort(graph, start_commit_id, repo,
cancel_cb, cancel_arg);
if (err)
goto done;
blob - bb8f09bf9b71aaa916498b8ca230950f1cd0549a
blob + 25522c81fb2b8206f953e4b128d8aa1c9c000bad
--- lib/commit_graph.c
+++ lib/commit_graph.c
}
const struct got_error *
-got_commit_graph_iter_start(struct got_commit_graph *graph,
+got_commit_graph_bfsort(struct got_commit_graph *graph,
struct got_object_id *id, struct got_repository *repo,
got_cancel_cb cancel_cb, void *cancel_arg)
{
if (err)
goto done;
} else {
- err = got_commit_graph_iter_start(graph, commit_id, repo,
+ err = got_commit_graph_bfsort(graph, commit_id, repo,
cancel_cb, cancel_arg);
if (err)
goto done;
- err = got_commit_graph_iter_start(graph2, commit_id2, repo,
+ err = got_commit_graph_bfsort(graph2, commit_id2, repo,
cancel_cb, cancel_arg);
if (err)
goto done;
STAILQ_INIT(&commits);
if (graph->flags & GOT_COMMIT_GRAPH_FIRST_PARENT_TRAVERSAL)
- return got_commit_graph_iter_start(graph, id, repo,
+ return got_commit_graph_bfsort(graph, id, repo,
cancel_cb, cancel_arg);
/* Clear left-over state from previous iteration attempts. */
blob - de26ffa1417cd4d2308f644b6a33a4a778f1f47e
blob + 8ab3bab5a72fce833f44118899959e311ecac180
--- lib/keyword.c
+++ lib/keyword.c
if (err)
goto done;
- err = got_commit_graph_iter_start(graph,
+ err = got_commit_graph_bfsort(graph,
head_id != NULL ? head_id : kwid, repo, NULL, NULL);
if (err)
goto done;
blob - de94ddedf322329e50f2e9155daa6a586c650eeb
blob + c1bf4e3aa81fc1c0a524ddb49c9a50842105c77c
--- tog/tog.c
+++ tog/tog.c
!s->log_branches);
if (err)
goto done;
- err = got_commit_graph_iter_start(thread_graph, s->start_id,
+ err = got_commit_graph_bfsort(thread_graph, s->start_id,
s->repo, NULL, NULL);
if (err)
goto done;
s->in_repo_path, !s->log_branches);
if (err)
return err;
- err = got_commit_graph_iter_start(s->thread_args.graph,
+ err = got_commit_graph_bfsort(s->thread_args.graph,
s->start_id, s->repo, NULL, NULL);
if (err)
return err;