Git fork
12 case "$(git ls-files)" in
23 one) echo pass one ;;
34 *) echo bad one; return 1 ;;
45 esac &&
56 (
67 case "$(git ls-files)" in
78 two) echo pass two ;;
89 *) echo bad two; exit 1 ;;
910 esac
1011 ) &&
1112 case "$(git ls-files)" in
1213 dir/two"$LF"one) echo pass both ;;
1314 *) echo bad; return 1 ;;
1415 esac &&
1516
1617 for i in 1 2 3 4 ; do
1718 git checkout main -b $i || return $?
1819 test_commit $i $i $i tag$i || return $?
1920 done