summaryrefslogtreecommitdiff
path: root/t/chainlint/while-loop.expect
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2021-12-13 01:30:50 -0500
committerJunio C Hamano <gitster@pobox.com>2021-12-13 14:15:29 -0800
commitdb8c7a1cc02e545dd75b55e2ccbab2de51cd06ae (patch)
treeacffc94f666354a3b6c21b80621dc54495317f30 /t/chainlint/while-loop.expect
parentf30c1d5eb1ceeec460ea4cd2089ece63156f5eb0 (diff)
downloadgit-db8c7a1cc02e545dd75b55e2ccbab2de51cd06ae.tar.gz
chainlint.sed: improve ?!AMP?! placement accuracy
When chainlint.sed detects a broken &&-chain, it places an ?!AMP?! annotation at the beginning of the line. However, this is an unusual location for programmers accustomed to error messages (from compilers, for instance) indicating the exact point of the problem. Therefore, relocate the ?!AMP?! annotation to the end of the line in order to better direct the programmer's attention to the source of the problem. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/chainlint/while-loop.expect')
-rw-r--r--t/chainlint/while-loop.expect4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/chainlint/while-loop.expect b/t/chainlint/while-loop.expect
index 13cff2c0a5..f8b9fcf62b 100644
--- a/t/chainlint/while-loop.expect
+++ b/t/chainlint/while-loop.expect
@@ -1,9 +1,9 @@
(
while true
do
-?!AMP?! echo foo
+ echo foo ?!AMP?!
cat
-?!AMP?! done
+ done ?!AMP?!
while true; do
echo foo &&
cat bar