(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:test_description)
          op: assign_op.Equal
          rhs: {(SQ <'Test diff raw-output.\n'> <'\n'>)}
          spids: [13]
        )
      ]
    )
    (C {<.>} {<'./test-lib.sh'>})
    (C {<.>} {(DQ ($ Id.VSub_DollarName '$TEST_DIRECTORY')) <'/lib-read-tree-m-3way.sh'>})
    (command.Simple
      words: [{<cat>}]
      redirects: [
        (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<.test-plain-OA>})
        (redir
          op: <Id.Redir_DLess '<<'>
          loc: (redir_loc.Fd fd:0)
          arg: 
            (redir_param.MultiLine
              here_begin: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\E'>) <OF>}
              here_end_span_id: 53
              stdin_parts: [
                <
':000000 100644 0000000000000000000000000000000000000000 ccba72ad3888a3520b39efcf780b9ee64167535d A\tAA\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 7e426fb079479fd67f6d81f984e4ec649a44bc25 A\tAN\n'
                >
                <
':100644 000000 bcc68ef997017466d5c9094bcf7692295f588c9a 0000000000000000000000000000000000000000 D\tDD\n'
                >
                <
':000000 040000 0000000000000000000000000000000000000000 6d50f65d3bdab91c63444294d38f08aeff328e42 A\tDF\n'
                >
                <
':100644 000000 141c1f1642328e4bc46a7d801a71da392e66791e 0000000000000000000000000000000000000000 D\tDM\n'
                >
                <
':100644 000000 35abde1506ddf806572ff4d407bd06885d0f8ee9 0000000000000000000000000000000000000000 D\tDN\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 1d41122ebdd7a640f29d3c9cc4f9d70094374762 A\tLL\n'
                >
                <
':100644 100644 03f24c8c4700babccfd28b654e7e8eac402ad6cd 103d9f89b50b9aad03054b579be5e7aa665f2d57 M\tMD\n'
                >
                <
':100644 100644 b258508afb7ceb449981bd9d63d2d3e971bf8d34 b431b272d829ff3aa4d1a5085f4394ab4d3305b6 M\tMM\n'
                >
                <
':100644 100644 bd084b0c27c7b6cc34f11d6d0509a29be3caf970 a716d58de4a570e0038f5c307bd8db34daea021f M\tMN\n'
                >
                <
':100644 100644 40c959f984c8b89a2b02520d17f00d717f024397 2ac547ae9614a00d1b28275de608131f7a0e259f M\tSS\n'
                >
                <
':100644 100644 4ac13458899ab908ef3b1128fa378daefc88d356 4c86f9a85fbc5e6804ee2e17a797538fbe785bca M\tTT\n'
                >
                <
':040000 040000 7d670fdcdb9929f6c7dac196ff78689cd1c566a1 5e5f22072bb39f6e12cf663a57cb634c76eefb49 M\tZ\n'
                >
              ]
            )
        )
      ]
      do_fork: T
    )
    (command.Simple
      words: [{<cat>}]
      redirects: [
        (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<.test-recursive-OA>})
        (redir
          op: <Id.Redir_DLess '<<'>
          loc: (redir_loc.Fd fd:0)
          arg: 
            (redir_param.MultiLine
              here_begin: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\E'>) <OF>}
              here_end_span_id: 84
              stdin_parts: [
                <
':000000 100644 0000000000000000000000000000000000000000 ccba72ad3888a3520b39efcf780b9ee64167535d A\tAA\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 7e426fb079479fd67f6d81f984e4ec649a44bc25 A\tAN\n'
                >
                <
':100644 000000 bcc68ef997017466d5c9094bcf7692295f588c9a 0000000000000000000000000000000000000000 D\tDD\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 68a6d8b91da11045cf4aa3a5ab9f2a781c701249 A\tDF/DF\n'
                >
                <
':100644 000000 141c1f1642328e4bc46a7d801a71da392e66791e 0000000000000000000000000000000000000000 D\tDM\n'
                >
                <
':100644 000000 35abde1506ddf806572ff4d407bd06885d0f8ee9 0000000000000000000000000000000000000000 D\tDN\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 1d41122ebdd7a640f29d3c9cc4f9d70094374762 A\tLL\n'
                >
                <
':100644 100644 03f24c8c4700babccfd28b654e7e8eac402ad6cd 103d9f89b50b9aad03054b579be5e7aa665f2d57 M\tMD\n'
                >
                <
':100644 100644 b258508afb7ceb449981bd9d63d2d3e971bf8d34 b431b272d829ff3aa4d1a5085f4394ab4d3305b6 M\tMM\n'
                >
                <
':100644 100644 bd084b0c27c7b6cc34f11d6d0509a29be3caf970 a716d58de4a570e0038f5c307bd8db34daea021f M\tMN\n'
                >
                <
':100644 100644 40c959f984c8b89a2b02520d17f00d717f024397 2ac547ae9614a00d1b28275de608131f7a0e259f M\tSS\n'
                >
                <
':100644 100644 4ac13458899ab908ef3b1128fa378daefc88d356 4c86f9a85fbc5e6804ee2e17a797538fbe785bca M\tTT\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 8acb8e9750e3f644bf323fcf3d338849db106c77 A\tZ/AA\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 087494262084cefee7ed484d20c8dc0580791272 A\tZ/AN\n'
                >
                <
':100644 000000 879007efae624d2b1307214b24a956f0a8d686a8 0000000000000000000000000000000000000000 D\tZ/DD\n'
                >
                <
':100644 000000 9b541b2275c06e3a7b13f28badf5294e2ae63df4 0000000000000000000000000000000000000000 D\tZ/DM\n'
                >
                <
':100644 000000 beb5d38c55283d280685ea21a0e50cfcc0ca064a 0000000000000000000000000000000000000000 D\tZ/DN\n'
                >
                <
':100644 100644 d41fda41b7ec4de46b43cb7ea42a45001ae393d5 a79ac3be9377639e1c7d1edf1ae1b3a5f0ccd8a9 M\tZ/MD\n'
                >
                <
':100644 100644 4ca22bae2527d3d9e1676498a0fba3b355bd1278 61422ba9c2c873416061a88cd40a59a35b576474 M\tZ/MM\n'
                >
                <
':100644 100644 b16d7b25b869f2beb124efa53467d8a1550ad694 a5c544c21cfcb07eb80a4d89a5b7d1570002edfd M\tZ/MN\n'
                >
              ]
            )
        )
      ]
      do_fork: T
    )
    (command.Simple
      words: [{<cat>}]
      redirects: [
        (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<.test-plain-OB>})
        (redir
          op: <Id.Redir_DLess '<<'>
          loc: (redir_loc.Fd fd:0)
          arg: 
            (redir_param.MultiLine
              here_begin: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\E'>) <OF>}
              here_end_span_id: 107
              stdin_parts: [
                <
':000000 100644 0000000000000000000000000000000000000000 6aa2b5335b16431a0ef71e5c0a28be69183cf6a2 A\tAA\n'
                >
                <
':100644 000000 bcc68ef997017466d5c9094bcf7692295f588c9a 0000000000000000000000000000000000000000 D\tDD\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 71420ab81e254145d26d6fc0cddee64c1acd4787 A\tDF\n'
                >
                <
':100644 100644 141c1f1642328e4bc46a7d801a71da392e66791e 3c4d8de5fbad08572bab8e10eef8dbb264cf0231 M\tDM\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 1d41122ebdd7a640f29d3c9cc4f9d70094374762 A\tLL\n'
                >
                <
':100644 000000 03f24c8c4700babccfd28b654e7e8eac402ad6cd 0000000000000000000000000000000000000000 D\tMD\n'
                >
                <
':100644 100644 b258508afb7ceb449981bd9d63d2d3e971bf8d34 19989d4559aae417fedee240ccf2ba315ea4dc2b M\tMM\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 15885881ea69115351c09b38371f0348a3fb8c67 A\tNA\n'
                >
                <
':100644 000000 a4e179e4291e5536a5e1c82e091052772d2c5a93 0000000000000000000000000000000000000000 D\tND\n'
                >
                <
':100644 100644 c8f25781e8f1792e3e40b74225e20553041b5226 cdb9a8c3da571502ac30225e9c17beccb8387983 M\tNM\n'
                >
                <
':100644 100644 40c959f984c8b89a2b02520d17f00d717f024397 2ac547ae9614a00d1b28275de608131f7a0e259f M\tSS\n'
                >
                <
':100644 100644 4ac13458899ab908ef3b1128fa378daefc88d356 c4e4a12231b9fa79a0053cb6077fcb21bb5b135a M\tTT\n'
                >
                <
':040000 040000 7d670fdcdb9929f6c7dac196ff78689cd1c566a1 1ba523955d5160681af65cb776411f574c1e8155 M\tZ\n'
                >
              ]
            )
        )
      ]
      do_fork: T
    )
    (command.Simple
      words: [{<cat>}]
      redirects: [
        (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<.test-recursive-OB>})
        (redir
          op: <Id.Redir_DLess '<<'>
          loc: (redir_loc.Fd fd:0)
          arg: 
            (redir_param.MultiLine
              here_begin: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\E'>) <OF>}
              here_end_span_id: 137
              stdin_parts: [
                <
':000000 100644 0000000000000000000000000000000000000000 6aa2b5335b16431a0ef71e5c0a28be69183cf6a2 A\tAA\n'
                >
                <
':100644 000000 bcc68ef997017466d5c9094bcf7692295f588c9a 0000000000000000000000000000000000000000 D\tDD\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 71420ab81e254145d26d6fc0cddee64c1acd4787 A\tDF\n'
                >
                <
':100644 100644 141c1f1642328e4bc46a7d801a71da392e66791e 3c4d8de5fbad08572bab8e10eef8dbb264cf0231 M\tDM\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 1d41122ebdd7a640f29d3c9cc4f9d70094374762 A\tLL\n'
                >
                <
':100644 000000 03f24c8c4700babccfd28b654e7e8eac402ad6cd 0000000000000000000000000000000000000000 D\tMD\n'
                >
                <
':100644 100644 b258508afb7ceb449981bd9d63d2d3e971bf8d34 19989d4559aae417fedee240ccf2ba315ea4dc2b M\tMM\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 15885881ea69115351c09b38371f0348a3fb8c67 A\tNA\n'
                >
                <
':100644 000000 a4e179e4291e5536a5e1c82e091052772d2c5a93 0000000000000000000000000000000000000000 D\tND\n'
                >
                <
':100644 100644 c8f25781e8f1792e3e40b74225e20553041b5226 cdb9a8c3da571502ac30225e9c17beccb8387983 M\tNM\n'
                >
                <
':100644 100644 40c959f984c8b89a2b02520d17f00d717f024397 2ac547ae9614a00d1b28275de608131f7a0e259f M\tSS\n'
                >
                <
':100644 100644 4ac13458899ab908ef3b1128fa378daefc88d356 c4e4a12231b9fa79a0053cb6077fcb21bb5b135a M\tTT\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 6c0b99286d0bce551ac4a7b3dff8b706edff3715 A\tZ/AA\n'
                >
                <
':100644 000000 879007efae624d2b1307214b24a956f0a8d686a8 0000000000000000000000000000000000000000 D\tZ/DD\n'
                >
                <
':100644 100644 9b541b2275c06e3a7b13f28badf5294e2ae63df4 d77371d15817fcaa57eeec27f770c505ba974ec1 M\tZ/DM\n'
                >
                <
':100644 000000 d41fda41b7ec4de46b43cb7ea42a45001ae393d5 0000000000000000000000000000000000000000 D\tZ/MD\n'
                >
                <
':100644 100644 4ca22bae2527d3d9e1676498a0fba3b355bd1278 697aad7715a1e7306ca76290a3dd4208fbaeddfa M\tZ/MM\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 d12979c22fff69c59ca9409e7a8fe3ee25eaee80 A\tZ/NA\n'
                >
                <
':100644 000000 a18393c636b98e9bd7296b8b437ea4992b72440c 0000000000000000000000000000000000000000 D\tZ/ND\n'
                >
                <
':100644 100644 3fdbe17fd013303a2e981e1ca1c6cd6e72789087 7e09d6a3a14bd630913e8c75693cea32157b606d M\tZ/NM\n'
                >
              ]
            )
        )
      ]
      do_fork: T
    )
    (command.Simple
      words: [{<cat>}]
      redirects: [
        (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<.test-plain-AB>})
        (redir
          op: <Id.Redir_DLess '<<'>
          loc: (redir_loc.Fd fd:0)
          arg: 
            (redir_param.MultiLine
              here_begin: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\E'>) <OF>}
              here_end_span_id: 161
              stdin_parts: [
                <
':100644 100644 ccba72ad3888a3520b39efcf780b9ee64167535d 6aa2b5335b16431a0ef71e5c0a28be69183cf6a2 M\tAA\n'
                >
                <
':100644 000000 7e426fb079479fd67f6d81f984e4ec649a44bc25 0000000000000000000000000000000000000000 D\tAN\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 71420ab81e254145d26d6fc0cddee64c1acd4787 A\tDF\n'
                >
                <
':040000 000000 6d50f65d3bdab91c63444294d38f08aeff328e42 0000000000000000000000000000000000000000 D\tDF\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 3c4d8de5fbad08572bab8e10eef8dbb264cf0231 A\tDM\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 35abde1506ddf806572ff4d407bd06885d0f8ee9 A\tDN\n'
                >
                <
':100644 000000 103d9f89b50b9aad03054b579be5e7aa665f2d57 0000000000000000000000000000000000000000 D\tMD\n'
                >
                <
':100644 100644 b431b272d829ff3aa4d1a5085f4394ab4d3305b6 19989d4559aae417fedee240ccf2ba315ea4dc2b M\tMM\n'
                >
                <
':100644 100644 a716d58de4a570e0038f5c307bd8db34daea021f bd084b0c27c7b6cc34f11d6d0509a29be3caf970 M\tMN\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 15885881ea69115351c09b38371f0348a3fb8c67 A\tNA\n'
                >
                <
':100644 000000 a4e179e4291e5536a5e1c82e091052772d2c5a93 0000000000000000000000000000000000000000 D\tND\n'
                >
                <
':100644 100644 c8f25781e8f1792e3e40b74225e20553041b5226 cdb9a8c3da571502ac30225e9c17beccb8387983 M\tNM\n'
                >
                <
':100644 100644 4c86f9a85fbc5e6804ee2e17a797538fbe785bca c4e4a12231b9fa79a0053cb6077fcb21bb5b135a M\tTT\n'
                >
                <
':040000 040000 5e5f22072bb39f6e12cf663a57cb634c76eefb49 1ba523955d5160681af65cb776411f574c1e8155 M\tZ\n'
                >
              ]
            )
        )
      ]
      do_fork: T
    )
    (command.Simple
      words: [{<cat>}]
      redirects: [
        (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<.test-recursive-AB>})
        (redir
          op: <Id.Redir_DLess '<<'>
          loc: (redir_loc.Fd fd:0)
          arg: 
            (redir_param.MultiLine
              here_begin: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\E'>) <OF>}
              here_end_span_id: 194
              stdin_parts: [
                <
':100644 100644 ccba72ad3888a3520b39efcf780b9ee64167535d 6aa2b5335b16431a0ef71e5c0a28be69183cf6a2 M\tAA\n'
                >
                <
':100644 000000 7e426fb079479fd67f6d81f984e4ec649a44bc25 0000000000000000000000000000000000000000 D\tAN\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 71420ab81e254145d26d6fc0cddee64c1acd4787 A\tDF\n'
                >
                <
':100644 000000 68a6d8b91da11045cf4aa3a5ab9f2a781c701249 0000000000000000000000000000000000000000 D\tDF/DF\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 3c4d8de5fbad08572bab8e10eef8dbb264cf0231 A\tDM\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 35abde1506ddf806572ff4d407bd06885d0f8ee9 A\tDN\n'
                >
                <
':100644 000000 103d9f89b50b9aad03054b579be5e7aa665f2d57 0000000000000000000000000000000000000000 D\tMD\n'
                >
                <
':100644 100644 b431b272d829ff3aa4d1a5085f4394ab4d3305b6 19989d4559aae417fedee240ccf2ba315ea4dc2b M\tMM\n'
                >
                <
':100644 100644 a716d58de4a570e0038f5c307bd8db34daea021f bd084b0c27c7b6cc34f11d6d0509a29be3caf970 M\tMN\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 15885881ea69115351c09b38371f0348a3fb8c67 A\tNA\n'
                >
                <
':100644 000000 a4e179e4291e5536a5e1c82e091052772d2c5a93 0000000000000000000000000000000000000000 D\tND\n'
                >
                <
':100644 100644 c8f25781e8f1792e3e40b74225e20553041b5226 cdb9a8c3da571502ac30225e9c17beccb8387983 M\tNM\n'
                >
                <
':100644 100644 4c86f9a85fbc5e6804ee2e17a797538fbe785bca c4e4a12231b9fa79a0053cb6077fcb21bb5b135a M\tTT\n'
                >
                <
':100644 100644 8acb8e9750e3f644bf323fcf3d338849db106c77 6c0b99286d0bce551ac4a7b3dff8b706edff3715 M\tZ/AA\n'
                >
                <
':100644 000000 087494262084cefee7ed484d20c8dc0580791272 0000000000000000000000000000000000000000 D\tZ/AN\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 d77371d15817fcaa57eeec27f770c505ba974ec1 A\tZ/DM\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 beb5d38c55283d280685ea21a0e50cfcc0ca064a A\tZ/DN\n'
                >
                <
':100644 000000 a79ac3be9377639e1c7d1edf1ae1b3a5f0ccd8a9 0000000000000000000000000000000000000000 D\tZ/MD\n'
                >
                <
':100644 100644 61422ba9c2c873416061a88cd40a59a35b576474 697aad7715a1e7306ca76290a3dd4208fbaeddfa M\tZ/MM\n'
                >
                <
':100644 100644 a5c544c21cfcb07eb80a4d89a5b7d1570002edfd b16d7b25b869f2beb124efa53467d8a1550ad694 M\tZ/MN\n'
                >
                <
':000000 100644 0000000000000000000000000000000000000000 d12979c22fff69c59ca9409e7a8fe3ee25eaee80 A\tZ/NA\n'
                >
                <
':100644 000000 a18393c636b98e9bd7296b8b437ea4992b72440c 0000000000000000000000000000000000000000 D\tZ/ND\n'
                >
                <
':100644 100644 3fdbe17fd013303a2e981e1ca1c6cd6e72789087 7e09d6a3a14bd630913e8c75693cea32157b606d M\tZ/NM\n'
                >
              ]
            )
        )
      ]
      do_fork: T
    )
    (command.ShFunction
      name: cmp_diff_files_output
      body: 
        (BraceGroup
          children: [
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (command.Simple
                  words: [
                    {<sed>}
                    {<-e>}
                    {(SQ <'/^:000000 /d;s/'>) ($ Id.VSub_DollarName '$_x40') 
                      (SQ <'\\( [MCRNDU][0-9]*\\)\t/'>) ($ Id.VSub_DollarName '$_z40') (SQ <'\\1\t/'>)
                    }
                  ]
                  redirects: [
                    (redir
                      op: <Id.Redir_Less '<'>
                      loc: (redir_loc.Fd fd:0)
                      arg: {(DQ ($ Id.VSub_Number '$2'))}
                    )
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {<.test-tmp>}
                    )
                  ]
                  do_fork: T
                )
                (C {<test_cmp>} {(DQ ($ Id.VSub_Number '$1'))} {<.test-tmp>})
              ]
            )
          ]
        )
    )
    (C {<test_expect_success>} {(SQ <'diff-tree of known trees.'>)} 
      {(SQ <'git diff-tree $tree_O $tree_A >.test-a &&\n'> <'     cmp -s .test-a .test-plain-OA'>)}
    )
    (C {<test_expect_success>} {(SQ <'diff-tree of known trees.'>)} 
      {
        (SQ <'git diff-tree -r $tree_O $tree_A >.test-a &&\n'> 
          <'     cmp -s .test-a .test-recursive-OA'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'diff-tree of known trees.'>)} 
      {(SQ <'git diff-tree $tree_O $tree_B >.test-a &&\n'> <'     cmp -s .test-a .test-plain-OB'>)}
    )
    (C {<test_expect_success>} {(SQ <'diff-tree of known trees.'>)} 
      {
        (SQ <'git diff-tree -r $tree_O $tree_B >.test-a &&\n'> 
          <'     cmp -s .test-a .test-recursive-OB'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'diff-tree of known trees.'>)} 
      {(SQ <'git diff-tree $tree_A $tree_B >.test-a &&\n'> <'     cmp -s .test-a .test-plain-AB'>)}
    )
    (C {<test_expect_success>} {(SQ <'diff-tree of known trees.'>)} 
      {
        (SQ <'git diff-tree -r $tree_A $tree_B >.test-a &&\n'> 
          <'     cmp -s .test-a .test-recursive-AB'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'diff-tree --stdin of known trees.'>)} 
      {
        (SQ <'echo $tree_A $tree_B | git diff-tree --stdin > .test-a &&\n'> 
          <'     echo $tree_A $tree_B > .test-plain-ABx &&\n'> <'     cat .test-plain-AB >> .test-plain-ABx &&\n'> <'     cmp -s .test-a .test-plain-ABx'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'diff-tree --stdin of known trees.'>)} 
      {
        (SQ <'echo $tree_A $tree_B | git diff-tree -r --stdin > .test-a &&\n'> 
          <'     echo $tree_A $tree_B > .test-recursive-ABx &&\n'> <'     cat .test-recursive-AB >> .test-recursive-ABx &&\n'> 
          <'     cmp -s .test-a .test-recursive-ABx'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'diff-cache O with A in cache'>)} 
      {
        (SQ <'git read-tree $tree_A &&\n'> <'     git diff-index --cached $tree_O >.test-a &&\n'> 
          <'     cmp -s .test-a .test-recursive-OA'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'diff-cache O with B in cache'>)} 
      {
        (SQ <'git read-tree $tree_B &&\n'> <'     git diff-index --cached $tree_O >.test-a &&\n'> 
          <'     cmp -s .test-a .test-recursive-OB'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'diff-cache A with B in cache'>)} 
      {
        (SQ <'git read-tree $tree_B &&\n'> <'     git diff-index --cached $tree_A >.test-a &&\n'> 
          <'     cmp -s .test-a .test-recursive-AB'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'diff-files with O in cache and A checked out'>)} 
      {
        (SQ <'rm -fr Z [A-Z][A-Z] &&\n'> <'     git read-tree $tree_A &&\n'> 
          <'     git checkout-index -f -a &&\n'> <'     git read-tree --reset $tree_O &&\n'> <'     test_must_fail git update-index --refresh -q &&\n'> 
          <'     git diff-files >.test-a &&\n'> <'     cmp_diff_files_output .test-a .test-recursive-OA'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'diff-files with O in cache and B checked out'>)} 
      {
        (SQ <'rm -fr Z [A-Z][A-Z] &&\n'> <'     git read-tree $tree_B &&\n'> 
          <'     git checkout-index -f -a &&\n'> <'     git read-tree --reset $tree_O &&\n'> <'     test_must_fail git update-index --refresh -q &&\n'> 
          <'     git diff-files >.test-a &&\n'> <'     cmp_diff_files_output .test-a .test-recursive-OB'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'diff-files with A in cache and B checked out'>)} 
      {
        (SQ <'rm -fr Z [A-Z][A-Z] &&\n'> <'     git read-tree $tree_B &&\n'> 
          <'     git checkout-index -f -a &&\n'> <'     git read-tree --reset $tree_A &&\n'> <'     test_must_fail git update-index --refresh -q &&\n'> 
          <'     git diff-files >.test-a &&\n'> <'     cmp_diff_files_output .test-a .test-recursive-AB'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'diff-tree O A == diff-tree -R A O'>)} 
      {
        (SQ <'git diff-tree $tree_O $tree_A >.test-a &&\n'> 
          <'    git diff-tree -R $tree_A $tree_O >.test-b &&\n'> <'    cmp -s .test-a .test-b'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'diff-tree -r O A == diff-tree -r -R A O'>)} 
      {
        (SQ <'git diff-tree -r $tree_O $tree_A >.test-a &&\n'> 
          <'    git diff-tree -r -R $tree_A $tree_O >.test-b &&\n'> <'    cmp -s .test-a .test-b'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'diff-tree B A == diff-tree -R A B'>)} 
      {
        (SQ <'git diff-tree $tree_B $tree_A >.test-a &&\n'> 
          <'    git diff-tree -R $tree_A $tree_B >.test-b &&\n'> <'    cmp -s .test-a .test-b'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'diff-tree -r B A == diff-tree -r -R A B'>)} 
      {
        (SQ <'git diff-tree -r $tree_B $tree_A >.test-a &&\n'> 
          <'    git diff-tree -r -R $tree_A $tree_B >.test-b &&\n'> <'    cmp -s .test-a .test-b'>
        )
      }
    )
    (C {<test_expect_success>} {(SQ <'diff can read from stdin'>)} 
      {
        (SQ <'test_must_fail git diff --no-index -- MN - < NN |\n'> 
          <'        grep -v "^index" | sed "s#/-#/NN#" >.test-a &&\n'> <'    test_must_fail git diff --no-index -- MN NN |\n'> <'        grep -v "^index" >.test-b &&\n'> 
          <'    test_cmp .test-a .test-b'>
        )
      }
    )
    (C {<test_done>})
  ]
)