diff options
author | Kevin Daudt <me@ikke.info> | 2015-03-19 23:14:08 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-03-19 15:26:21 -0700 |
commit | f88851c6376f0b2a4cf87c061a848e4ae4438e0a (patch) | |
tree | ea29f8f8bdc58aeeb3621673b309ee36f5204d90 /t/t6000-rev-list-misc.sh | |
parent | 282616c72d1d08a77ca4fe1186cb708c38408d87 (diff) | |
download | git-f88851c6376f0b2a4cf87c061a848e4ae4438e0a.tar.gz |
rev-list: refuse --first-parent combined with --bisectkd/rev-list-bisect-first-parent
rev-list --bisect is used by git bisect, but never together with
--first-parent. Because rev-list --bisect together with --first-parent
is not handled currently, and even leads to segfaults, refuse to use
both options together.
Because this is not supported, it makes little sense to use git log
--bisect --first parent either, because refs/heads/bad is not limited to
the first parent chain.
Helped-by: Junio C. Hamano <gitster@pobox.com>
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Kevin Daudt <me@ikke.info>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6000-rev-list-misc.sh')
-rwxr-xr-x | t/t6000-rev-list-misc.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t6000-rev-list-misc.sh b/t/t6000-rev-list-misc.sh index 3794e4ceaf..97a13a574e 100755 --- a/t/t6000-rev-list-misc.sh +++ b/t/t6000-rev-list-misc.sh @@ -73,4 +73,8 @@ test_expect_success 'symleft flag bit is propagated down from tag' ' test_cmp expect actual ' +test_expect_success '--bisect and --first-parent can not be combined' ' + test_must_fail git rev-list --bisect --first-parent HEAD +' + test_done |