Re: [PATCH] git-bisect.sh: don't accidentally override existing branch "bisect"
- From
- Richard Quirk <richard.quirk@gmail.com>
- Date
- May 1, 2008, 12:15 UTC
- Message-ID
- <cac9e4380805010515h783dcf74h39fcc522c78885d3@mail.gmail.com>
- In-Reply-To
- <200804302330.18354.chriscool@tuxfamily.org>
On Wed, Apr 30, 2008 at 11:30 PM, Christian Couder <chriscool@tuxfamily.org> wrote:
Show 9 quoted lines
> Minor nitpick: you may use:
>
> git show-ref -q {new-,}bisect
>
> instead of:
>
>
> git show-ref bisect > /dev/null ||
> git show-ref new-bisect > /dev/nullCareful with that - it's a bashism and would fail if /bin/sh is dash. ie it would say that a branch called literally "{new-,}bisect" does not exist, even if new-bisect and bisect do.
(this time reply-all instead of just to Christian!)