Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-11-13 16:37:24 +0300
committerJunio C Hamano <gitster@pobox.com>2018-11-13 16:37:24 +0300
commit291123e69babcbbab720705a1bc1e6f0ba3012a4 (patch)
treede927178be4e839f7e23b8f05ed56067370744a1 /commit-reach.h
parent1961efecae1ef937aa1d571add4eae03a8c8303b (diff)
parent85daa01f6b80cb6eb14c5f484a6da9f0b1247143 (diff)
Merge branch 'ds/add-missing-tags'
The history traversal used to implement the tag-following has been optimized by introducing a new helper. * ds/add-missing-tags: remote: make add_missing_tags() linear test-reach: test get_reachable_subset commit-reach: implement get_reachable_subset
Diffstat (limited to 'commit-reach.h')
-rw-r--r--commit-reach.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/commit-reach.h b/commit-reach.h
index 7a65f55e59..fb8082a2ec 100644
--- a/commit-reach.h
+++ b/commit-reach.h
@@ -75,4 +75,17 @@ int can_all_from_reach_with_flag(struct object_array *from,
int can_all_from_reach(struct commit_list *from, struct commit_list *to,
int commit_date_cutoff);
+
+/*
+ * Return a list of commits containing the commits in the 'to' array
+ * that are reachable from at least one commit in the 'from' array.
+ * Also add the given 'flag' to each of the commits in the returned list.
+ *
+ * This method uses the PARENT1 and PARENT2 flags during its operation,
+ * so be sure these flags are not set before calling the method.
+ */
+struct commit_list *get_reachable_subset(struct commit **from, int nr_from,
+ struct commit **to, int nr_to,
+ unsigned int reachable_flag);
+
#endif