Re: [PATCH] notes: remove trailing whitespace from editor template
On Sat, May 24, 2025, at 23:35, kristofferhaugsbakk@fastmail.com wrote:
Show 6 quoted lines
> + test_commit --signoff 23rd &&
> + GIT_EDITOR="cat >actual" git notes add &&
> + test_grep ! " $" actual
> +'
> +
> test_done
Or alternatively I could assert on the whole template:
```
test_expect_success 'git notes add editor template' '
test_commit --signoff 23rd &&
cat <<-EOF >expect &&
#
# Write/edit the notes for the following object:
#
$(git show --stat --no-notes 23rd |
git stripspace |
git stripspace --comment-lines)
EOF
GIT_EDITOR="cat >actual" git notes add &&
test_cmp expect actual
'
```
--
Kristoffer