read_git_commit_timestamp_for_file¶
- documenteer.sphinxconfig.utils.read_git_commit_timestamp_for_file(filepath, repo_path=None)¶
Obtain the timestamp for the most recent commit to a given file in a Git repository.
- Parameters
- Returns
commit_timestamp – The datetime of a the most recent commit to the given file.
- Return type
- Raises
IOError – Raised if the
filepath
does not exist in the Git repository.