Re: [RFC PATCH 11/35] update: add --merge mode
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Jul 6, 2021, 20:51 UTC
- Message-ID
- <60e4c257a998d_1c42812085c@natae.notmuch>
- In-Reply-To
- <8735sr5hfg.fsf@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason wrote:
> On Mon, Jul 05 2021, Felipe Contreras wrote:
Show 15 quoted lines
> > --- a/t/t5563-update.sh > > +++ b/t/t5563-update.sh > > @@ -42,4 +42,19 @@ test_expect_success 'non-fast-forward update' ' > > ) > > ' > > > > +test_expect_success 'git update non-fast-forward with merge' ' > > + test_when_finished "rm -rf test" && > > + ( > > + git clone . test && > > + cd test && > > + git checkout -b other master^ && > > + >new && > > We usually indent the subshell...
All right.
> > + git add new && > > + git commit -m new && > > And if we can use test_commit, less verbose.
OK. Sure.
FTR. These tests come from 2013, they don't fit my current style and I wanted to rewrite them completely since there's a lot of duplicated code. But I thought: what the hell, they work. Plus there's only so much time I'm willing to spend on an RFC v1 of this series (which probably won't be merged anyway).
Cheers.
-- Felipe Contreras