git_dag.git_commands.TestGitRepository

class git_dag.git_commands.TestGitRepository[source]

Bases: object

Create test git repository.

Methods

create

Git repository creation displatch.

repository_default

Default repository.

repository_default_with_notes

Default repository with git notes.

repository_empty

Empty repository (possibly with files added to the index).

tar

Tar a git repository.

untar

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).

static tar(src_path: Path | str, tar_file_name: Path | str) None[source]

Tar a git repository.

static untar(tar_file_name: Path | str, extract_path: Path | str) None[source]

Untar a git repository.