read_git_commit_timestamp

documenteer.sphinxconfig.utils.read_git_commit_timestamp(repo_path=None)

Obtain the timestamp from the current head commit of a Git repository.

Parameters
repo_pathstr, optional

Path to the Git repository. Leave as None to use the current working directory.

Returns
commit_timestampdatetime.datetime

The datetime of the head commit.