3.1.37.1. waf_tools.vcs.VcsInformation
- class waf_tools.vcs.VcsInformation(_under_version_control: bool = False, _dirty: bool = True, _tag: str = 'untagged', _major: int = 0, _minor: int = 0, _patch: int = 0, _remote: str = 'unknown', _distance: int = 65535, _full_hash: str = 'FFFFFFFFFFFFFFFF', _short_hash: str = 'FFFFFFFFFFFFFF')
Bases:
objectVersion information
- property dirty: bool
Return whether the working tree contains local modifications.
- property distance: int
Return the commit distance from the last release.
- property full_hash: str
Return the full commit hash string.
- property major: int
Return the major version component.
- property minor: int
Return the minor version component.
- property patch: int
Return the patch version component.
- property remote: str
Return the remote repository URL string.
- property short_hash: str
Return the shortened commit hash used in version strings.
- property tag: bool
Return the resolved release tag.
- property under_version_control: bool
Return whether the source tree is under version control.
- property version: str
Return the formatted version string used in generated artifacts.