Re: [PATCH] mailmap: Testing the single letter name case.
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jul 14, 2013, 02:38 UTC
- Message-ID
- <CAPig+cRQ5yVYjY==5P+kKJycdHDp9avzcxHvZj34GJ3oBAcesg@mail.gmail.com>
- In-Reply-To
- <1373700020-30436-1-git-send-email-stefanbeller@googlemail.com>
On Sat, Jul 13, 2013 at 3:20 AM, Stefan Beller <stefanbeller@googlemail.com> wrote:
Show 23 quoted lines
> This is a regression test for a66e77eab70a08938fdc2227b7ada0f0465c6991 > > Signed-off-by: Stefan Beller <stefanbeller@googlemail.com> > --- > t/t4203-mailmap.sh | 41 +++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 41 insertions(+) > > diff --git a/t/t4203-mailmap.sh b/t/t4203-mailmap.sh > index 842b754..9ec87a2 100755 > --- a/t/t4203-mailmap.sh > +++ b/t/t4203-mailmap.sh > @@ -409,4 +409,45 @@ test_expect_success 'Blame output (complex mapping)' ' > test_cmp expect actual.fuzz > ' > > +# Regression test > +# Using a single letter name to check for off-by-one errors in parse_name_and_email > +test_expect_success 'check mapping for short names' ' > + echo one >two && > + git add two && > + git commit --author "A <shortname@company.xx>" -m "eighth" && > + > + echo two >> two &&
s/>> />>/
> + git add two && > + git commit --author "A <ShortName@company.xy>" -m "nineth" && > + > + echo "A <ShortName@company.xy> <shortname@company.xx>" >> .mailmap &&
s/>> />>/
> + git shortlog HEAD -e >actual
Broken &&-chain: s/actual/actual &&/
Show 8 quoted lines
> + > + test_cmp expect actual > +' > + > test_done > -- > 1.8.3.2.776.gfcf213d >