summaryrefslogtreecommitdiff
path: root/bisect.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-11-15 03:14:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-11-15 03:14:28 (GMT)
commitf116163171b875f9b58c6f6755bec85460e9b8b8 (patch)
treee937bf9c2851f7490bdce140e361422d2b46dc08 /bisect.h
parent6fa1f6f16f29516e57dc3c81f0910e6c34786c17 (diff)
parentf4e45cb3eb6fad4570ff63eecb37bae8102992fc (diff)
downloadgit-f116163171b875f9b58c6f6755bec85460e9b8b8.zip
git-f116163171b875f9b58c6f6755bec85460e9b8b8.tar.gz
git-f116163171b875f9b58c6f6755bec85460e9b8b8.tar.bz2
Merge branch 'ma/bisect-leakfix'
Leak fixes. * ma/bisect-leakfix: bisect: fix memory leak when returning best element bisect: fix off-by-one error in `best_bisection_sorted()` bisect: fix memory leak in `find_bisection()` bisect: change calling-convention of `find_bisection()`
Diffstat (limited to 'bisect.h')
-rw-r--r--bisect.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/bisect.h b/bisect.h
index 0ae63d4..a5d9248 100644
--- a/bisect.h
+++ b/bisect.h
@@ -1,9 +1,15 @@
#ifndef BISECT_H
#define BISECT_H
-extern struct commit_list *find_bisection(struct commit_list *list,
- int *reaches, int *all,
- int find_all);
+/*
+ * Find bisection. If something is found, `reaches` will be the number of
+ * commits that the best commit reaches. `all` will be the count of
+ * non-SAMETREE commits. If nothing is found, `list` will be NULL.
+ * Otherwise, it will be either all non-SAMETREE commits or the single
+ * best commit, as chosen by `find_all`.
+ */
+extern void find_bisection(struct commit_list **list, int *reaches, int *all,
+ int find_all);
extern struct commit_list *filter_skipped(struct commit_list *list,
struct commit_list **tried,