Table of Contents
GitInfo
Module to retrieve git metadata for the project.
Bases: object
object
Dataclass to hold git information.
branch (str) – Current git branch name.
commit (str) – Current git commit SHA.
dirty (bool) – Boolean indicating if there are uncommitted changes.
Get the project git metadata.
repo_path (Path) – Path to the git repository.
GitInfo dataclass.