parameters: (pieces)
return_statement: return rendered
docstring: TAG-DISTANCE-gHEX[-dirty].
  
      Like 'git describe --tags --dirty --always -long'.
      The distance/hash is unconditional.
  
      Exceptions:
      1: no tags. HEX[-dirty]  (note: no 'g' prefix)
docstring_summary: TAG-DISTANCE-gHEX[-dirty].
docstring_tokens: TAG - DISTANCE - gHEX [ - dirty ] .
function: def render_git_describe_long(pieces):
      """TAG-DISTANCE-gHEX[-dirty].
  
      Like 'git describe --tags --dirty --always -long'.
      The distance/hash is unconditional.
  
      Exceptions:
      1: no tags. HEX[-dirty]  (note: no 'g' prefix)
      """
      if pieces["closest-tag"]:
          rendered = pieces["closest-tag"]
          rendered += "-%d-g%s" % (pieces["distance"], pieces["short"])
      else:
          # exception #1
          rendered = pieces["short"]
      if pieces["dirty"]:
          rendered += "-dirty"
      return rendered
function_tokens: def render_git_describe_long ( pieces ) : if pieces [ "closest-tag" ] : rendered = pieces [ "closest-tag" ] rendered += "-%d-g%s" % ( pieces [ "distance" ] , pieces [ "short" ] ) else : # exception #1 rendered = pieces [ "short" ] if pieces [ "dirty" ] : rendered += "-dirty" return rendered