(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'test_description='> name:test_description) op: assign_op.Equal rhs: { (SQ <'Examples from the git-notes man page\n'> <'\n'> <'Make sure the manual is not full of lies.'> ) } spids: [4] ) ] redirects: [] ) (C {<.>} {<'./test-lib.sh'>}) (C {<test_expect_success>} {(SQ <setup>)} {(SQ <'\n'> <'\ttest_commit A &&\n'> <'\ttest_commit B &&\n'> <'\ttest_commit C\n'>)} ) (C {<test_expect_success>} {(SQ <'example 1: notes to add an Acked-by line'>)} { (SQ <'\n'> <'\tcat <<-\\EOF >expect &&\n'> <'\t B\n'> <'\n'> <'\tNotes:\n'> <'\t Acked-by: A C Ker <acker@example.com>\n'> <'\tEOF\n'> <'\tgit notes add -m "Acked-by: A C Ker <acker@example.com>" B &&\n'> <'\tgit show -s B^{commit} >log &&\n'> <'\ttail -n 4 log >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (C {<test_expect_success>} {(SQ <'example 2: binary notes'>)} { (SQ <'\n'> <'\tcp "$TEST_DIRECTORY"/test-binary-1.png . &&\n'> <'\tgit checkout B &&\n'> <'\tblob=$(git hash-object -w test-binary-1.png) &&\n'> <'\tgit notes --ref=logo add -C "$blob" &&\n'> <'\tgit notes --ref=logo copy B C &&\n'> <'\tgit notes --ref=logo show C >actual &&\n'> <'\ttest_cmp test-binary-1.png actual\n'> ) } ) (C {<test_done>}) ] )