Re: [PATCH v2 1/1] branch: introduce --show-current display option
On Fri, Oct 12, 2018 at 12:53:26AM +0200, SZEDER Gábor wrote:
Show 27 quoted lines
> On Wed, Oct 10, 2018 at 10:54:32PM +0200, Daniels Umanovskis wrote:
>
> [...]
>
> > diff --git a/t/t3203-branch-output.sh b/t/t3203-branch-output.sh
> > index ee6787614..e9bc3b05f 100755
> > --- a/t/t3203-branch-output.sh
> > +++ b/t/t3203-branch-output.sh
> > @@ -100,6 +100,47 @@ test_expect_success 'git branch -v pattern does not show branch summaries' '
> > test_must_fail git branch -v branch*
> > '
> >
> > +test_expect_success 'git branch `--show-current` shows current branch' '
> > + cat >expect <<-\EOF &&
> > + branch-two
> > + EOF
> > + git checkout branch-two &&
>
> Up to this point everything talked about '--show-current' ...
>
> > + git branch --current >actual &&
>
> ... but here and in all the following tests you run
>
> git branch --current
>
> which then fails with "error: unknown option `current'"
Ah, OK, just noticed v3 which has already fixed this.