summaryrefslogtreecommitdiff
path: root/bisect.h
diff options
context:
space:
mode:
authorAaron Lipman <alipman88@gmail.com>2020-08-07 21:58:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-08-07 22:13:03 (GMT)
commitad464a4e84b502fdfd4671f1c443060c7e87113f (patch)
tree9ba095151311c3c7c160109f030105b42d206826 /bisect.h
parente8861ffc203fe5ea3da97210e60b2e886002f218 (diff)
downloadgit-ad464a4e84b502fdfd4671f1c443060c7e87113f.zip
git-ad464a4e84b502fdfd4671f1c443060c7e87113f.tar.gz
git-ad464a4e84b502fdfd4671f1c443060c7e87113f.tar.bz2
bisect: combine args passed to find_bisection()
Now that find_bisection() accepts multiple boolean arguments, these may be combined into a single unsigned integer in order to declutter some of the code in bisect.c Also, rename the existing "flags" bitfield to "commit_flags", to explicitly differentiate it from the new "bisect_flags" bitfield. Based-on-patch-by: Harald Nordgren <haraldnordgren@gmail.com> Signed-off-by: Aaron Lipman <alipman88@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bisect.h')
-rw-r--r--bisect.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bisect.h b/bisect.h
index 7f30b94..ec24ac2 100644
--- a/bisect.h
+++ b/bisect.h
@@ -12,7 +12,7 @@ struct repository;
* best commit, as chosen by `find_all`.
*/
void find_bisection(struct commit_list **list, int *reaches, int *all,
- int find_all, int first_parent_only);
+ unsigned bisect_flags);
struct commit_list *filter_skipped(struct commit_list *list,
struct commit_list **tried,
@@ -23,6 +23,9 @@ struct commit_list *filter_skipped(struct commit_list *list,
#define BISECT_SHOW_ALL (1<<0)
#define REV_LIST_QUIET (1<<1)
+#define FIND_BISECTION_ALL (1u<<0)
+#define FIND_BISECTION_FIRST_PARENT_ONLY (1u<<1)
+
struct rev_list_info {
struct rev_info *revs;
int flags;