10 noslash
="$(echo "$1" | tr / _)" &&
11 cat "$1" > _worktree_
"$noslash" &&
12 git show
:"$1" > _index_
"$noslash"
15 set_and_save_state
() {
21 test "$(cat "$1")" = "$2" &&
22 test "$(git show :"$1")" = "$3"
25 verify_saved_state
() {
26 noslash
="$(echo "$1" | tr / _)" &&
27 verify_state
"$1" "$(cat _worktree_"$noslash")" "$(cat _index_"$noslash")"
31 git rev-parse HEAD
> _head
34 verify_saved_head
() {
35 test "$(cat _head)" = "$(git rev-parse HEAD)"