2 5aa81393 2020-01-06 stsp * Copyright (c) 2018, 2019, 2020 Stefan Sperling <stsp@openbsd.org>
4 372ccdbb 2018-06-10 stsp * Permission to use, copy, modify, and distribute this software for any
5 372ccdbb 2018-06-10 stsp * purpose with or without fee is hereby granted, provided that the above
6 372ccdbb 2018-06-10 stsp * copyright notice and this permission notice appear in all copies.
8 372ccdbb 2018-06-10 stsp * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 372ccdbb 2018-06-10 stsp * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 372ccdbb 2018-06-10 stsp * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 372ccdbb 2018-06-10 stsp * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 372ccdbb 2018-06-10 stsp * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 372ccdbb 2018-06-10 stsp * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 372ccdbb 2018-06-10 stsp * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 372ccdbb 2018-06-10 stsp struct got_commit_graph;
19 372ccdbb 2018-06-10 stsp const struct got_error *got_commit_graph_open(struct got_commit_graph **,
20 3d509237 2020-01-04 stsp const char *, int);
21 372ccdbb 2018-06-10 stsp void got_commit_graph_close(struct got_commit_graph *);
23 372ccdbb 2018-06-10 stsp const struct got_error *got_commit_graph_iter_start(
24 6fb7cd11 2019-08-22 stsp struct got_commit_graph *, struct got_object_id *, struct got_repository *,
25 6fb7cd11 2019-08-22 stsp got_cancel_cb, void *);
26 b43fbaa0 2018-06-11 stsp const struct got_error *got_commit_graph_iter_next(struct got_object_id **,
27 ee780d5c 2020-01-04 stsp struct got_commit_graph *, struct got_repository *, got_cancel_cb, void *);
28 be7061eb 2018-12-30 stsp const struct got_error *got_commit_graph_intersect(struct got_object_id **,
29 be7061eb 2018-12-30 stsp struct got_commit_graph *, struct got_commit_graph *,
30 be7061eb 2018-12-30 stsp struct got_repository *);
32 a9833bc9 2019-05-13 stsp /* Find the youngest common ancestor of two commits. */
33 a9833bc9 2019-05-13 stsp const struct got_error *got_commit_graph_find_youngest_common_ancestor(
34 a9833bc9 2019-05-13 stsp struct got_object_id **, struct got_object_id *, struct got_object_id *,
35 768705e3 2021-09-27 thomas int, struct got_repository *, got_cancel_cb, void *);