advice: omit trailing whitespace
commit2d8cf94b28de9da683ddd40961a3a572f2741cf3
authorJunio C Hamano <gitster@pobox.com>
Fri, 29 Mar 2024 22:57:06 +0000 (29 15:57 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Mar 2024 23:18:48 +0000 (29 16:18 -0700)
treee45a00caff7d79ef9792bae2975338a53ed7cd31
parentd6fd04375f9196f8b203d442f235bd96a1a068cc
advice: omit trailing whitespace

Git tools all consistently encourage users to avoid whitespaces at
the end of line by giving them features like "git diff --check" and
"git am --whitespace=fix".  Make sure that the advice messages we
give users avoid trailing whitespaces.  We shouldn't be wasting
vertical screen real estate by adding blank lines in advice messages
that are supposed to be concise hints, but as long as we write such
blank line in our "hints", we should do it right.

A test that expects the current behaviour of leaving trailing
whitespaces has been adjusted.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
advice.c
t/t3200-branch.sh
t/t7004-tag.sh