From: Ævar Arnfjörð Bjarmason Date: Thu, 13 Oct 2022 09:31:49 GMT Subject: Re: [RFC PATCH 1/2] notes.c: introduce "--no-blankline" option Message-ID: <221013.861qrcm5kx.gmgdl@evledraar.gmail.com> In-Reply-To: <20221013055654.39628-2-tenglong.tl@alibaba-inc.com> On Thu, Oct 13 2022, Teng Long wrote: > From: Teng Long > [...] > +test_expect_success 'append to existing note without a beginning blank line' ' > + cat >expect <<-EOF && Use <<-\EOF here. > + Initial set of notes > + Appended notes We usually indent the "EOF" body the same as the "cat", but... > + EOF > + git notes add -m "Initial set of notes" && > + git notes append --no-blankline -m "Appended notes" && > + git notes show >actual && > + test_cmp expect actual > +' > + > test_expect_success 'append to existing note with "git notes append"' ' > cat >expect <<-EOF && > Initial set of notes > > More notes appended with git notes append > EOF ... I see this test might be an odd one out, so this is fine.