(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:LF) op:Equal rhs:{(SQ <"\n">)} spids:[19])]
      spids: [19]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (AndOr
              children: [
                (C {(test)} {(-d)} {(../../../.git)} {(-o)} {(-f)} {(../../../.git)})
                (AndOr
                  children: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:VN)
                          op: Equal
                          rhs: 
                            {
                              (CommandSubPart
                                command_list: 
                                  (CommandList
                                    children: [
                                      (SimpleCommand
                                        words: [
                                          {(git)}
                                          {(describe)}
                                          {(--abbrev) (Lit_Other "=") (4)}
                                          {(HEAD)}
                                        ]
                                        redirects: [
                                          (Redir
                                            op_id: Redir_Great
                                            fd: 2
                                            arg_word: {(/dev/null)}
                                            spids: [60]
                                          )
                                        ]
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub "$(">
                                spids: [49 62]
                              )
                            }
                          spids: [48]
                        )
                      ]
                      spids: [48]
                    )
                    (Case
                      to_match: {(DQ ($ VSub_Name "$VN"))}
                      arms: [
                        (case_arm
                          pat_list: [{(Lit_Other "*") ($ VSub_Name "$LF") (Lit_Other "*")}]
                          action: [(Subshell child:(C {(exit)} {(1)}) spids:[8185])]
                          spids: [76 79 87 -1]
                        )
                        (case_arm
                          pat_list: [{(v) (Lit_Other "[") (0-9) (Lit_Other "]") (Lit_Other "*")}]
                          action: [
                            (C {(git)} {(update-index)} {(-q)} {(--refresh)})
                            (AndOr
                              children: [
                                (C {(test)} {(-z)} 
                                  {
                                    (DQ 
                                      (CommandSubPart
                                        command_list: 
                                          (CommandList
                                            children: [
                                              (C {(git)} {(diff-index)} {(--name-only)} {(HEAD)} {(--)})
                                            ]
                                          )
                                        left_token: <Left_CommandSub "$(">
                                        spids: [112 122]
                                      )
                                    )
                                  }
                                )
                                (Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (LhsName name:VN)
                                      op: Equal
                                      rhs: {(DQ ($ VSub_Name "$VN") (-dirty))}
                                      spids: [128]
                                    )
                                  ]
                                  spids: [128]
                                )
                              ]
                              op_id: Op_DPipe
                            )
                          ]
                          spids: [90 95 134 -1]
                        )
                      ]
                      spids: [67 73 137]
                    )
                  ]
                  op_id: Op_DAmp
                )
              ]
              op_id: Op_DAmp
            )
          ]
          action: [
            (Sentence
              child: 
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:VN)
                      op: Equal
                      rhs: 
                        {
                          (CommandSubPart
                            command_list: 
                              (CommandList
                                children: [
                                  (Pipeline
                                    children: [
                                      (C {(echo)} {(DQ ($ VSub_Name "$VN"))})
                                      (C {(sed)} {(-e)} {(SQ <s/-/./g>)})
                                    ]
                                    negated: False
                                  )
                                ]
                              )
                            left_token: <Left_CommandSub "$(">
                            spids: [143 159]
                          )
                        }
                      spids: [142]
                    )
                  ]
                  spids: [142]
                )
              terminator: <Op_Semi ";">
            )
          ]
          spids: [-1 139]
        )
      ]
      else_action: [
        (C {(eval)} 
          {
            (CommandSubPart
              command_list: 
                (CommandList
                  children: [
                    (Pipeline
                      children: [
                        (C {(grep)} {(SQ <"^VERSION[[:space:]]*=">)} {(../../../Makefile)})
                        (C {(tr)} {(-d)} {(SQ <" ">)})
                      ]
                      negated: False
                    )
                  ]
                )
              left_token: <Left_CommandSub "$(">
              spids: [167 183]
            )
          }
        )
        (C {(eval)} 
          {
            (CommandSubPart
              command_list: 
                (CommandList
                  children: [
                    (Pipeline
                      children: [
                        (C {(grep)} {(SQ <"^PATCHLEVEL[[:space:]]*=">)} {(../../../Makefile)})
                        (C {(tr)} {(-d)} {(SQ <" ">)})
                      ]
                      negated: False
                    )
                  ]
                )
              left_token: <Left_CommandSub "$(">
              spids: [188 204]
            )
          }
        )
        (C {(eval)} 
          {
            (CommandSubPart
              command_list: 
                (CommandList
                  children: [
                    (Pipeline
                      children: [
                        (C {(grep)} {(SQ <"^SUBLEVEL[[:space:]]*=">)} {(../../../Makefile)})
                        (C {(tr)} {(-d)} {(SQ <" ">)})
                      ]
                      negated: False
                    )
                  ]
                )
              left_token: <Left_CommandSub "$(">
              spids: [209 225]
            )
          }
        )
        (C {(eval)} 
          {
            (CommandSubPart
              command_list: 
                (CommandList
                  children: [
                    (Pipeline
                      children: [
                        (C {(grep)} {(SQ <"^EXTRAVERSION[[:space:]]*=">)} {(../../../Makefile)})
                        (C {(tr)} {(-d)} {(SQ <" ">)})
                      ]
                      negated: False
                    )
                  ]
                )
              left_token: <Left_CommandSub "$(">
              spids: [230 246]
            )
          }
        )
        (Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (LhsName name:VN)
              op: Equal
              rhs: 
                {
                  (DQ (${ VSub_Name VERSION) (.) (${ VSub_Name PATCHLEVEL) (.) (${ VSub_Name SUBLEVEL) 
                    (${ VSub_Name EXTRAVERSION)
                  )
                }
              spids: [250]
            )
          ]
          spids: [250]
        )
      ]
      spids: [162 268]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:VN)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [
                      (C {(expr)} {(DQ ($ VSub_Name "$VN"))} {(Lit_Other ":")} 
                        {(v) (Lit_Other "*") (SQ <"\\(.*\\)">)}
                      )
                    ]
                  )
                left_token: <Left_CommandSub "$(">
                spids: [272 286]
              )
            }
          spids: [271]
        )
      ]
      spids: [271]
    )
    (C {(echo)} {($ VSub_Name "$VN")})
  ]
)