(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:test_description) op: assign_op.Equal rhs: {(SQ <'git update-index --assume-unchanged test.\n'>)} spids: [4] ) ] ) (C {<.>} {<'./test-lib.sh'>}) (C {<test_expect_success>} {(SQ <setup>)} { (SQ <': >file &&\n'> <'\t git add file &&\n'> <'\t git commit -m initial &&\n'> <'\t git branch other &&\n'> <'\t echo upstream >file &&\n'> <'\t git add file &&\n'> <'\t git commit -m upstream'> ) } ) (C {<test_expect_success>} {(SQ <'do not switch branches with dirty file'>)} { (SQ <'git reset --hard &&\n'> <'\t git checkout other &&\n'> <'\t echo dirt >file &&\n'> <'\t git update-index --assume-unchanged file &&\n'> <'\t test_must_fail git checkout master'> ) } ) (C {<test_done>}) ] )