From: SZEDER Gábor Date: Thu, 11 Oct 2018 22:56:52 GMT Subject: Re: [PATCH v2 1/1] branch: introduce --show-current display option Message-ID: <20181011225652.GD19800@szeder.dev> In-Reply-To: <20181011225326.GC19800@szeder.dev> On Fri, Oct 12, 2018 at 12:53:26AM +0200, SZEDER Gábor wrote: > 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.