]> git.ipfire.org Git - thirdparty/git.git/commit - git-bisect.sh
bisect: teach "skip" to accept special arguments like "A..B"
authorChristian Couder <chriscool@tuxfamily.org>
Sun, 23 Nov 2008 21:02:49 +0000 (22:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Nov 2008 05:51:05 +0000 (21:51 -0800)
commitee2314f59a4eb8451008d4468fd96bb4e40763dc
tree2df7192ecd2350fdd83d107d7f671bc042974489
parentef3b38b445c183b2a07a6360de62908d312ade0f
bisect: teach "skip" to accept special arguments like "A..B"

The current "git bisect skip" syntax is "git bisect skip [<rev>...]"
so it's already possible to skip a range of revisions using
something like:

$ git bisect skip $(git rev-list A..B)

where A and B are the bounds of the range we want to skip.

This patch teaches "git bisect skip" to accept:

$ git bisect skip A..B

as an abbreviation for the former command.

This is done by checking each argument to see if it contains two
dots one after the other ('..'), and by expending it using
"git rev-list" if that is the case.

Note that this patch will not make "git bisect skip" accept all
that "git rev-list" accepts, as things like "^A B" for exemple
will not work. But things like "A B..C D E F.. ..G H...I" should
work as expected.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-bisect.sh