summaryrefslogtreecommitdiff
path: root/t/chainlint/arithmetic-expansion.expect
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2021-12-13 01:30:50 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-12-13 14:15:29 -0800
commitdb8c7a1cc02e545dd75b55e2ccbab2de51cd06ae (patch)
treeacffc94f666354a3b6c21b80621dc54495317f30 /t/chainlint/arithmetic-expansion.expect
parentt/Makefile: optimize chainlint self-test (diff)
downloadtgif-db8c7a1cc02e545dd75b55e2ccbab2de51cd06ae.tar.xz
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/arithmetic-expansion.expect')
-rw-r--r--t/chainlint/arithmetic-expansion.expect2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/chainlint/arithmetic-expansion.expect b/t/chainlint/arithmetic-expansion.expect
index 09457d3196..56cd5b69f5 100644
--- a/t/chainlint/arithmetic-expansion.expect
+++ b/t/chainlint/arithmetic-expansion.expect
@@ -4,6 +4,6 @@
baz
>) &&
(
-?!AMP?! bar=$((42 + 1))
+ bar=$((42 + 1)) ?!AMP?!
baz
>)