Expand description
Utilities for writing tests that interact with Git.
Structs§
- Commit
Builder - Builder for creating a new commit.
- Commit
Diff Builder - Builder for creating a new commit diff.
- Create
Commit Options - Options for creating a new commit.
- File
Status Builder - Builder for creating a new reference.
- Reference
Builder - Builder for creating a new reference.
Functions§
- add_
path_ to_ index - Add a path to the working index.
- commit_
id_ from_ ref - Get the Commit Oid from a reference name.
- create_
commit - 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. - head_id
- Get the Oid of provided head reference name.
- remove_
path_ from_ index - Remove a path to the working index.
- repo_
path - Get the the path to the repository.
- with_
temp_ bare_ repository - Provide a bare repository for testing in a temporary directory.
- with_
temp_ repository - Provides a new repository instance in a temporary directory for testing that contains an initial empty commit.