Re: [RFC PATCH 1/2] notes.c: introduce "--no-blankline" option
On Thu, Oct 13 2022, Teng Long wrote:
> From: Teng Long <dyroneteng@gmail.com>
> [...]
> +test_expect_success 'append to existing note without a beginning blank line' '
> + cat >expect <<-EOF &&
> + Initial set of notes
> + Appended notes
We usually indent the "EOF" body the same as the "cat", but...
Show 13 quoted lines
> + 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.