git
[Ported from github.com/git/git] Sync with Git 2.56.1
Brought by drakestapleton
git / t / greplint / bare-grep-compound-body.test
| 1 | test_expect_success 'grep after then/do/else is flagged' ' |
| 2 | if true |
| 3 | then |
| 4 | grep pattern file |
| 5 | fi && |
| 6 | while true |
| 7 | do |
| 8 | grep pattern file && |
| 9 | break |
| 10 | done && |
| 11 | if true |
| 12 | then |
| 13 | echo yes |
| 14 | else |
| 15 | grep pattern file |
| 16 | fi |
| 17 | ' |