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)
| 1618 | |
| 1619 | |
| 1620 | def 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 | |
| 1640 | def render(pieces, style): |
no outgoing calls
no test coverage detected
searching dependent graphs…