Re: [PATCH v2] branch: show rebase/bisect info when possible instead of "(no branch)"
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Feb 3, 2013, 21:23 UTC
- Message-ID
- <vpqpq0hnlb1.fsf@grenoble-inp.fr>
- In-Reply-To
- <1359870520-22644-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
Show 8 quoted lines
> --- a/t/t6030-bisect-porcelain.sh > +++ b/t/t6030-bisect-porcelain.sh > @@ -164,7 +164,7 @@ test_expect_success 'bisect start: existing ".git/BISECT_START" not modified if > cp .git/BISECT_START saved && > test_must_fail git bisect start $HASH4 foo -- && > git branch > branch.output && > - test_i18ngrep "* (no branch)" branch.output > /dev/null && > + test_i18ngrep "* (bisecting other)" branch.output > /dev/null &&
I'd have spelled it (no branch, bisecting other) to make it clear that we're on detached HEAD, and avoid confusing old-timers. But maybe your version is enough, I'm not sure.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/