(CommandList
  children: [
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (C {(Lit_Other "[")} {(-z)} {(DQ ($ VSub_Number "$1"))} {(-o)} {(-z)} 
                  {(DQ ($ VSub_Number "$2"))} {(Lit_Other "]")}
                )
              terminator: <Op_Semi ";">
            )
          ]
          action: [(C {(echo)} {(DQ ("usage: git-import branch import-message"))}) (C {(exit)} {(1)})]
          spids: [-1 37]
        )
      ]
      spids: [-1 51]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:USERNAME)
          op: Equal
          rhs: 
            {
              (DQ 
                (CommandSubPart
                  command_list: (CommandList children:[(C {(git)} {(config)} {(user.name)})])
                  left_token: <Left_CommandSub "$(">
                  spids: [56 62]
                )
              )
            }
          spids: [54]
        )
      ]
      spids: [54]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:EMAIL)
          op: Equal
          rhs: 
            {
              (DQ 
                (CommandSubPart
                  command_list: (CommandList children:[(C {(git)} {(config)} {(user.email)})])
                  left_token: <Left_CommandSub "$(">
                  spids: [67 73]
                )
              )
            }
          spids: [65]
        )
      ]
      spids: [65]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (C {(Lit_Other "[")} {(-z)} {(DQ ($ VSub_Name "$USERNAME"))} {(-o)} {(-z)} 
                  {(DQ ($ VSub_Name "$EMAIL"))} {(Lit_Other "]")}
                )
              terminator: <Op_Semi ";">
            )
          ]
          action: [(C {(echo)} {(DQ ("You need to set user name and email"))}) (C {(exit)} {(1)})]
          spids: [-1 98]
        )
      ]
      spids: [-1 112]
    )
    (C {(git)} {(init)})
    (Pipeline
      children: [
        (Subshell
          child: 
            (CommandList
              children: [
                (SimpleCommand
                  words: [{(cat)}]
                  redirects: [
                    (HereDoc
                      op_id: Redir_DLess
                      fd: -1
                      body: 
                        {
                          (DQ ("commit refs/heads/") ($ VSub_Number "$1") ("\n") ("committer ") 
                            ($ VSub_Name "$USERNAME") (" <") ($ VSub_Name "$EMAIL") ("> now\n") ("data <<MSGEOF\n") ($ VSub_Number "$2") ("\n") ("MSGEOF\n") 
                            ("\n")
                          )
                        }
                      do_expansion: True
                      here_end: EOF
                      was_filled: True
                      spids: [125]
                    )
                  ]
                )
                (Pipeline
                  children: [
                    (C {(find)} {(Lit_Other "*")} {(-type)} {(f)})
                    (While
                      cond: [(Sentence child:(C {(read)} {(i)}) terminator:<Op_Semi ";">)]
                      body: 
                        (DoGroup
                          children: [
                            (C {(echo)} {(DQ ("M 100644 inline ") ($ VSub_Name "$i"))})
                            (C {(echo)} {(data)} 
                              {
                                (CommandSubPart
                                  command_list: 
                                    (CommandList
                                      children: [
                                        (C {(stat)} {(-c)} {(SQ <"%s">)} {(DQ ($ VSub_Name "$i"))})
                                      ]
                                    )
                                  left_token: <Left_CommandSub "$(">
                                  spids: [171 183]
                                )
                              }
                            )
                            (C {(cat)} {(DQ ($ VSub_Name "$i"))})
                            (C {(echo)})
                          ]
                          spids: [156 196]
                        )
                    )
                  ]
                  negated: False
                )
                (C {(echo)})
              ]
            )
          spids: [120 201]
        )
        (C {(git)} {(fast-import)} {(--date-format) (Lit_Other "=") (now)})
      ]
      negated: False
    )
  ]
)