summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Aaron Lipman <alipman88@gmail.com>2020-08-07 17:58:35 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-08-07 15:11:59 -0700
commit0fe305a5d342225976688b1bd68dc4dc179b66b3 (patch)
treec695319b64bda483b850da86c55e7b9d717706e2 /builtin
parentt6030: modernize "git bisect run" tests (diff)
downloadtgif-0fe305a5d342225976688b1bd68dc4dc179b66b3.tar.xz
rev-list: allow bisect and first-parent flags
Add first_parent_only parameter to find_bisection(), removing the barrier that prevented combining the --bisect and --first-parent flags when using git rev-list Based-on-patch-by: Tiago Botelho <tiagonbotelho@hotmail.com> Signed-off-by: Aaron Lipman <alipman88@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/rev-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/rev-list.c b/builtin/rev-list.c
index f520111eda..d1a14596b2 100644
--- a/builtin/rev-list.c
+++ b/builtin/rev-list.c
@@ -638,7 +638,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
if (bisect_list) {
int reaches, all;
- find_bisection(&revs.commits, &reaches, &all, bisect_find_all);
+ find_bisection(&revs.commits, &reaches, &all, bisect_find_all, revs.first_parent_only);
if (bisect_show_vars)
return show_bisect_vars(&info, reaches, all);