Re: [PATCH 9/9] trailer: add tests for "git interpret-trailers"
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 30, 2013, 17:19 UTC
- Message-ID
- <xmqq1u0utfwk.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <20131224063726.19560.61859.chriscool@tuxfamily.org>
Christian Couder <chriscool@tuxfamily.org> writes:
Show 7 quoted lines
> +# Do not remove trailing spaces below! > +cat >complex_message_trailers <<'EOF' > +Fixes: > +Acked-by: > +Reviewed-by: > +Signed-off-by: > +EOF
Just a hint. I think it is far safer and robust over time to do something like this:
sed -e 's/ Z$/ /' <<-\EOF
Fixes: Z
Acked-by: Z
EOFinstead of a comment, which can warn human developers but does not do anything to prevent their editors' auto-fix features from kicking in.