git_dag.git_commands.TestGitRepository¶
- class git_dag.git_commands.TestGitRepository[source]¶
Bases:
object
Create test git repository.
Methods
Git repository creation displatch.
Default repository.
Default repository with git notes.
Empty repository (possibly with files added to the index).
Tar a git repository.
Untar a git repository.
- classmethod create(label: Literal['default', 'default-with-notes', 'empty'], repo_path: Path | str, tar_file_name: Path | str | None = None, **kwargs: dict[str, Any]) GitCommandMutate [source]¶
Git repository creation displatch.
- static repository_default(path: Path | str) GitCommandMutate [source]¶
Default repository.
- classmethod repository_default_with_notes(path: Path | str) GitCommandMutate [source]¶
Default repository with git notes.
- static repository_empty(path: Path | str, files: dict[str, str] | None = None) GitCommandMutate [source]¶
Empty repository (possibly with files added to the index).