(List (= scope= flags=0 words=[] bindings=[('test_description', {[SQ ]})]) (Com {[LIT_CHARS .]} {[LIT_CHARS ./test-lib.sh]} ) (FunctionDef test_create_repo_with_commit [] (AndOr OP_AND_IF (Com {[LIT_CHARS test_create_repo]} {[DQ [VarSub 1]]} ) (Subshell (AndOr OP_AND_IF (Com {[LIT_CHARS cd]} {[DQ [VarSub 1]]} ) (AndOr OP_AND_IF (Com {[LIT_OTHER ":"]} < (FilenameRedirectNode filename={[LIT_CHARS bar]} "> 1), > ) (AndOr OP_AND_IF (Com {[LIT_CHARS git]} {[LIT_CHARS add]} {[LIT_CHARS bar]} ) (AndOr OP_AND_IF (Com {[LIT_CHARS git]} {[LIT_CHARS commit]} {[LIT_CHARS -m]} {[DQ [LIT_CHARS " Add bar"]]} ) (AndOr OP_AND_IF (Com {[LIT_OTHER ":"]} < (FilenameRedirectNode filename={[LIT_CHARS foo]} "> 1), > ) (AndOr OP_AND_IF (Com {[LIT_CHARS git]} {[LIT_CHARS add]} {[LIT_CHARS foo]} ) (Com {[LIT_CHARS git]} {[LIT_CHARS commit]} {[LIT_CHARS -m]} {[DQ [LIT_CHARS " Add foo"]]} ) ) ) ) ) ) ) ) ) ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ .gitignore &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ sub/foo &&\n"> output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ sub/foo &&\n"> output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ foo && git add foo) &&\n"> output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ foo && git add foo) &&\n"> output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ sub/new-file &&\n"> output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ foo && git add foo) &&\n"> sub/new-file &&\n"> output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ foo && git add foo) &&\n"> sub/new-file &&\n"> output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ foo && git commit -m \"next change\" foo) &&\n"> sub/foo &&\n"> output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ sub/foo &&\n"> output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ foo && git add foo) &&\n"> output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ foo && git add foo) &&\n"> output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ sub/new-file &&\n"> output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ foo && git add foo) &&\n"> sub/new-file &&\n"> output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ foo && git add foo) &&\n"> sub/new-file &&\n"> output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ .git) &&\n"> >.gitignore &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ foo && git add foo) &&\n"> output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ output &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ output &&\n"> ]} ) (Com {[LIT_CHARS cat]} < (FilenameRedirectNode filename={[LIT_CHARS status_expect]} "> 1), (HereDocRedirectNode here_end='EOF' do_expansion=False body_word={[LIT_CHARS "AA .gitmodules\n"] [LIT_CHARS "A sub1\n"]} 0), > ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ ../status_actual 2>&1\n"> ]} ) (= scope= flags=0 words=[] bindings=[('sha1_merge_sub1', {[ComSub (AndOr OP_AND_IF (Com {[LIT_CHARS cd]} {[LIT_CHARS sub1]}) (Com {[LIT_CHARS git]} {[LIT_CHARS rev-parse]} {[LIT_CHARS HEAD]}) )]})]) (= scope= flags=0 words=[] bindings=[('sha1_merge_sub2', {[ComSub (AndOr OP_AND_IF (Com {[LIT_CHARS cd]} {[LIT_CHARS sub2]}) (Com {[LIT_CHARS git]} {[LIT_CHARS rev-parse]} {[LIT_CHARS HEAD]}) )]})]) (= scope= flags=0 words=[] bindings=[('short_sha1_merge_sub1', {[ComSub (AndOr OP_AND_IF (Com {[LIT_CHARS cd]} {[LIT_CHARS sub1]}) (Com {[LIT_CHARS git]} {[LIT_CHARS rev-parse]} {[LIT_CHARS --short]} {[LIT_CHARS HEAD]}) )]})]) (= scope= flags=0 words=[] bindings=[('short_sha1_merge_sub2', {[ComSub (AndOr OP_AND_IF (Com {[LIT_CHARS cd]} {[LIT_CHARS sub2]}) (Com {[LIT_CHARS git]} {[LIT_CHARS rev-parse]} {[LIT_CHARS --short]} {[LIT_CHARS HEAD]}) )]})]) (Com {[LIT_CHARS cat]} < (FilenameRedirectNode filename={[LIT_CHARS diff_expect]} "> 1), (HereDocRedirectNode here_end='EOF' do_expansion=False body_word={[LIT_CHARS "diff --cc .gitmodules\n"] [LIT_CHARS "index badaa4c,44f999a..0000000\n"] [LIT_CHARS "--- a/.gitmodules\n"] [LIT_CHARS "+++ b/.gitmodules\n"] [LIT_CHARS "@@@ -1,3 -1,3 +1,9 @@@\n"] [LIT_CHARS "++<<<<<<< HEAD\n"] [LIT_CHARS " +[submodule \"sub2\"]\n"] [LIT_CHARS " +\tpath = sub2\n"] [LIT_CHARS " +\turl = ../sub2\n"] [LIT_CHARS "++=======\n"] [LIT_CHARS "+ [submodule \"sub1\"]\n"] [LIT_CHARS "+ \tpath = sub1\n"] [LIT_CHARS "+ \turl = ../sub1\n"] [LIT_CHARS "++>>>>>>> add_sub1\n"]} 0), > ) (Com {[LIT_CHARS cat]} < (FilenameRedirectNode filename={[LIT_CHARS diff_submodule_expect]} "> 1), (HereDocRedirectNode here_end='EOF' do_expansion=False body_word={[LIT_CHARS "diff --cc .gitmodules\n"] [LIT_CHARS "index badaa4c,44f999a..0000000\n"] [LIT_CHARS "--- a/.gitmodules\n"] [LIT_CHARS "+++ b/.gitmodules\n"] [LIT_CHARS "@@@ -1,3 -1,3 +1,9 @@@\n"] [LIT_CHARS "++<<<<<<< HEAD\n"] [LIT_CHARS " +[submodule \"sub2\"]\n"] [LIT_CHARS " +\tpath = sub2\n"] [LIT_CHARS " +\turl = ../sub2\n"] [LIT_CHARS "++=======\n"] [LIT_CHARS "+ [submodule \"sub1\"]\n"] [LIT_CHARS "+ \tpath = sub1\n"] [LIT_CHARS "+ \turl = ../sub1\n"] [LIT_CHARS "++>>>>>>> add_sub1\n"]} 0), > ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ ../diff_actual 2>&1\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ ../diff_submodule_actual 2>&1\n"> ]} ) (Com {[LIT_CHARS test_done]} ) )