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>
This commit is contained in:

committed by
Junio C Hamano

parent
15a4802a69
commit
0fe305a5d3
@ -2869,9 +2869,6 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
|
||||
if (!revs->reflog_info && revs->grep_filter.use_reflog_filter)
|
||||
die("cannot use --grep-reflog without --walk-reflogs");
|
||||
|
||||
if (revs->first_parent_only && revs->bisect)
|
||||
die(_("--first-parent is incompatible with --bisect"));
|
||||
|
||||
if (revs->line_level_traverse &&
|
||||
(revs->diffopt.output_format & ~(DIFF_FORMAT_PATCH | DIFF_FORMAT_NO_OUTPUT)))
|
||||
die(_("-L does not yet support diff formats besides -p and -s"));
|
||||
|
Reference in New Issue
Block a user