Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2021-12-13 09:30:50 +0300
committerJunio C Hamano <gitster@pobox.com>2021-12-14 01:15:29 +0300
commitdb8c7a1cc02e545dd75b55e2ccbab2de51cd06ae (patch)
treeacffc94f666354a3b6c21b80621dc54495317f30 /t/chainlint/if-then-else.expect
parentf30c1d5eb1ceeec460ea4cd2089ece63156f5eb0 (diff)
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/if-then-else.expect')
-rw-r--r--t/chainlint/if-then-else.expect4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/chainlint/if-then-else.expect b/t/chainlint/if-then-else.expect
index a80f5e6c75..3055d5606c 100644
--- a/t/chainlint/if-then-else.expect
+++ b/t/chainlint/if-then-else.expect
@@ -1,7 +1,7 @@
(
if test -n ""
then
-?!AMP?! echo very
+ echo very ?!AMP?!
echo empty
elif test -z ""
then
@@ -9,7 +9,7 @@
else
echo foo &&
cat
-?!AMP?! fi
+ fi ?!AMP?!
echo poodle
>) &&
(