MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / render_git_describe_long

Function render_git_describe_long

versioneer.py:1620–1637  ·  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

1618
1619
1620def render_git_describe_long(pieces):
1621 """TAG-DISTANCE-gHEX[-dirty].
1622
1623 Like 'git describe --tags --dirty --always -long'.
1624 The distance/hash is unconditional.
1625
1626 Exceptions:
1627 1: no tags. HEX[-dirty] (note: no 'g' prefix)
1628 """
1629 if pieces["closest-tag"]:
1630 rendered = pieces["closest-tag"]
1631 rendered += "-%d-g%s" % (pieces["distance"], pieces["short"])
1632 else:
1633 # exception #1
1634 rendered = pieces["short"]
1635 if pieces["dirty"]:
1636 rendered += "-dirty"
1637 return rendered
1638
1639
1640def 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…