summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-03-25 19:54:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-25 19:54:21 (GMT)
commit257b204f2537e50c8c53326d188094203cd3515f (patch)
tree196c07cbed8dcd79bad7c521c91ef9379ec57ca1 /revision.c
parent01c057df3fdf4b3fc50a49e61d0d9bd93517ff9b (diff)
parentf88851c6376f0b2a4cf87c061a848e4ae4438e0a (diff)
downloadgit-257b204f2537e50c8c53326d188094203cd3515f.zip
git-257b204f2537e50c8c53326d188094203cd3515f.tar.gz
git-257b204f2537e50c8c53326d188094203cd3515f.tar.bz2
Merge branch 'kd/rev-list-bisect-first-parent'
"git rev-list --bisect --first-parent" does not work (yet) and can even cause SEGV; forbid it. "git log --bisect --first-parent" would not be useful until "git bisect --first-parent" materializes, so it is also forbidden for now. * kd/rev-list-bisect-first-parent: rev-list: refuse --first-parent combined with --bisect
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/revision.c b/revision.c
index 66520c6..ed3f6e9 100644
--- a/revision.c
+++ b/revision.c
@@ -2342,6 +2342,9 @@ 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"));
+
return left;
}