Raw
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