git#
perhaps worth to create its own package for it, but good here as long as it doesn’t grow too big.
Of course all the commands assume git is installed on the system and can be accessed
by calling git
in the terminal.
- pythonning.git.get_current_commit_hash(repository_path: Path | None = None) str #
Return the hash of the latest commit the repository is currently at.
- Parameters:
repository_path – optional filesysten path to an existing directory, use current working directory (cwd) if not provided.