diff options
author | Aaron Lipman <alipman88@gmail.com> | 2020-08-07 23:58:38 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-08 00:13:03 +0200 |
commit | ad464a4e84b502fdfd4671f1c443060c7e87113f (patch) | |
tree | 9ba095151311c3c7c160109f030105b42d206826 /bisect.h | |
parent | bisect: introduce first-parent flag (diff) | |
download | git-ad464a4e84b502fdfd4671f1c443060c7e87113f.tar.xz git-ad464a4e84b502fdfd4671f1c443060c7e87113f.zip |
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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |