git_list_tracked_files¶
This function returns a list of all files that are either tracked or staged with git. This list can be used for providing a list of files to attach when initializing a Workflow, i.e. Workflow(..., attach_files=git_list_tracked_files()).
- caliber.git_list_tracked_files(directory: Path | str | None = None)[source]¶
List tracked and staged files in a directory.
This function is inspired by list_tracked_files() in the flit package.
- Parameters:
directory (Optional[Union[Path, str]]) – The directory to check for tracked files. Defaults to the current directory.