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)
| 1610 | |
| 1611 | |
| 1612 | def 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 | |
| 1632 | def render(pieces, style): |
no outgoing calls
no test coverage detected
searching dependent graphs…