Expand description
Utilities for writing tests that interact with Git.
Structs
Builder for creating a new commit.
Builder for creating a new commit diff.
Options for creating a new commit.
Builder for creating a new reference.
Builder for creating a new reference.
Functions
Add a path to the working index.
Get the Commit Oid from a reference name.
Create a commit based on the provided options. If options is not provided, will create a
commit using the default options. This function does not add modified or new files to the stage
before creating a commit.
Get the Oid of provided head reference name.
Remove a path to the working index.
Get the the path to the repository.
Provide a bare repository for testing in a temporary directory.
Provides a new repository instance in a temporary directory for testing that contains an initial empty commit.