Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/chainlint/chain-break-return-exit.expect # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / chainlint / chain-break-return-exit.expect` 19 lines ยท 426 bytes Raw Blame History 1 2 case "$(git ls-files)" in 2 3 one) echo pass one ;; 3 4 *) echo bad one; return 1 ;; 4 5 esac && 5 6 ( 6 7 case "$(git ls-files)" in 7 8 two) echo pass two ;; 8 9 *) echo bad two; exit 1 ;; 9 10 esac 10 11 ) && 11 12 case "$(git ls-files)" in 12 13 dir/two"$LF"one) echo pass both ;; 13 14 *) echo bad; return 1 ;; 14 15 esac && 15 16 16 17 for i in 1 2 3 4 ; do 17 18 git checkout main -b $i || return $? 18 19 test_commit $i $i $i tag$i || return $? 19 20 done