add_vcs_commit_id_reader
- add_vcs_commit_id_reader(func: Callable[[Path, datetime], VcsInfo | None]) Callable[[Path, datetime], VcsInfo | None] [source]
Add vcs commit_id reader function to the list of registered function.
This is pretty much the most simple decorator possible, there isn’t any sanity checking (e.g. functools function signature) since this package doesn’t have a pluginsystem and the sanity check is done by mypy.
- Parameters:
func (VcsCommitIdReader) – Function to be added
- Returns:
Originally added function.
- Return type:
VcsCommitIdReader