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_path (str, optional) – Path to the Git repository. Leave as None to use the current working directory.

Returns

commit_timestamp – The datetime of the head commit.

Return type

datetime.datetime