diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-03-29 22:57:06 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-03-29 23:18:48 (GMT) |
commit | 2d8cf94b28de9da683ddd40961a3a572f2741cf3 (patch) | |
tree | e45a00caff7d79ef9792bae2975338a53ed7cd31 /t/t3200-branch.sh | |
parent | d6fd04375f9196f8b203d442f235bd96a1a068cc (diff) | |
download | git-2d8cf94b28de9da683ddd40961a3a572f2741cf3.zip git-2d8cf94b28de9da683ddd40961a3a572f2741cf3.tar.gz git-2d8cf94b28de9da683ddd40961a3a572f2741cf3.tar.bz2 |
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>
Diffstat (limited to 't/t3200-branch.sh')
-rwxr-xr-x | t/t3200-branch.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh index d3bbd00..ccfa6a7 100755 --- a/t/t3200-branch.sh +++ b/t/t3200-branch.sh @@ -1154,9 +1154,9 @@ test_expect_success 'avoid ambiguous track and advise' ' hint: tracking ref '\''refs/heads/main'\'': hint: ambi1 hint: ambi2 - hint: '' + hint: hint: This is typically a configuration error. - hint: '' + hint: hint: To support setting up tracking branches, ensure that hint: different remotes'\'' fetch refspecs map into different hint: tracking namespaces. |