Re: [PATCH v2 3/4] t4113: use "<<-" instead of "<<"
- From
Shuqi Liang <cheskaqiqi@gmail.com>
- Date
- Feb 5, 2023, 14:38 UTC
- Message-ID
- <CAMO4yUEMHFCkcNa_oaEQLUCTTy+iwrahyWzyX=HTE0USv2WgPg@mail.gmail.com>
- In-Reply-To
- <xmqqwn4zsrr2.fsf@gitster.g>
On Thu, Feb 2, 2023 at 4:05 PM Junio C Hamano <gitster@pobox.com> wrote:
> You forgot to explain "Why?". What you did, anybody can see in the > patch text. Why you did so is what you are expected to explain in > your proposed log message.
Thanks. I did make a lot of mistakes in writing a good commit message. I will modify it.
Show 8 quoted lines
> > -cat >test-patch <<\EOF > > +cat >test-patch <<-\EOF > > diff --git a/file b/file > > --- a/file > > +++ b/file > > There is no need to do this, as the body of the here-doc is not > indented/prefixed with HT at all.
yeah, I did not notice that , According to t/README says, Indent the body of here-document, and use "<<-" instead of "<<" to strip leading TABs used for indentation. But here do not have the leading TABS in front of it.
Show 16 quoted lines
> > @@ -31,7 +31,7 @@ test_expect_success 'apply at the end' ' > > ' > > > > test_expect_success 'setup for apply at the beginning' ' > > - cat >test-patch <<\EOF > > + cat >test-patch <<-\EOF > > diff a/file b/file > > --- a/file > > +++ b/file > > This is necessary but that is only because [PATCH v2 2/4] broke it. > In general, we frown upon a series where a bug is introduced in an > earlier step, with another patch fixing that bug. > > Let's not introduce such a bug that we need to fix later from the > beginning instead.
Thanks, I will introduce the new bug caused by the current patch in the beginning.
-------- Thanks, shuqi