1 : included from t2016 and others
12 noslash="$(echo "$1" | tr / _)" &&
13 cat "$1" > _worktree_"$noslash" &&
14 git show :"$1" > _index_"$noslash"
17 set_and_save_state () {
23 test "$(cat "$1")" = "$2" &&
24 test "$(git show :"$1")" = "$3"
27 verify_saved_state () {
28 noslash="$(echo "$1" | tr / _)" &&
29 verify_state "$1" "$(cat _worktree_"$noslash")" "$(cat _index_"$noslash")"
33 git rev-parse HEAD > _head
36 verify_saved_head () {
37 test "$(cat _head)" = "$(git rev-parse HEAD)"