MCPcopy Create free account
hub / github.com/microsoft/debugpy / render_git_describe_long

Function render_git_describe_long

versioneer.py:1612–1629  ·  view source on GitHub ↗

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)

(pieces)

Source from the content-addressed store, hash-verified

1610
1611
1612def render_git_describe_long(pieces):
1613 """TAG-DISTANCE-gHEX[-dirty].
1614
1615 Like 'git describe --tags --dirty --always -long'.
1616 The distance/hash is unconditional.
1617
1618 Exceptions:
1619 1: no tags. HEX[-dirty] (note: no 'g' prefix)
1620 """
1621 if pieces["closest-tag"]:
1622 rendered = pieces["closest-tag"]
1623 rendered += "-%d-g%s" % (pieces["distance"], pieces["short"])
1624 else:
1625 # exception #1
1626 rendered = pieces["short"]
1627 if pieces["dirty"]:
1628 rendered += "-dirty"
1629 return rendered
1630
1631
1632def render(pieces, style):

Callers 1

renderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…