interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / chainlint / cuddled-loop.test

9 lines · 307 bytes Raw Blame History
1test_expect_success 'cuddled-loop' '
2# LINT: "while" loop cuddled with "(" and ")", with embedded (allowed)
3# LINT: "|| exit {n}" to exit loop early, and using redirection "<" to feed
4# LINT: loop; indented with spaces, not tabs
5( while read x
6 do foobar bop || exit 1
7 done <file ) &&
8outside subshell
9'