repo.or.cz
/
git
/
gitster.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'ja/doc-synopsis-markup'
[git/gitster.git]
/
t
/
chainlint
/
if-in-loop.test
blob
5be9d1cfa585ee58d88169dffb7cbf5413744623
1
test_expect_success 'if-in-loop' '
2
(
3
for i in a b c
4
do
5
if false
6
then
7
# LINT: missing "&&" on "echo" okay since "exit 1" signals error explicitly
8
echo "err"
9
exit 1
10
# LINT: missing "&&" on "fi"
11
fi
12
foo
13
# LINT: missing "&&" on "done"
14
done
15
bar
16
)
17
'