package
0.10.0
Repository: https://github.com/abhinav/git-spice.git
Documentation: pkg.go.dev

# Packages

Package gittest provides utilities for testing git repositories.

# Functions

Clone clones a Git repository from the given URL to the given directory.
CommitRangeFrom builds a commit range that reports the given commit and all its parents until the root commit.
Init initializes a new Git repository at the given directory.
NewConfig builds a new [Config] object for accessing Git configuration.
Open opens the repository at the given directory.
ParseMode parses a Git tree entry mode from a string.

# Constants

Supported object types.
Supported object types.
List of modes that git-spice cares about.
List of file status codes from https://git-scm.com/docs/git-diff-index#Documentation/git-diff-index.txt---diff-filterACDMRTUXB82308203.
List of file status codes from https://git-scm.com/docs/git-diff-index#Documentation/git-diff-index.txt---diff-filterACDMRTUXB82308203.
List of file status codes from https://git-scm.com/docs/git-diff-index#Documentation/git-diff-index.txt---diff-filterACDMRTUXB82308203.
List of file status codes from https://git-scm.com/docs/git-diff-index#Documentation/git-diff-index.txt---diff-filterACDMRTUXB82308203.
List of file status codes from https://git-scm.com/docs/git-diff-index#Documentation/git-diff-index.txt---diff-filterACDMRTUXB82308203.
List of file status codes from https://git-scm.com/docs/git-diff-index#Documentation/git-diff-index.txt---diff-filterACDMRTUXB82308203.
List of file status codes from https://git-scm.com/docs/git-diff-index#Documentation/git-diff-index.txt---diff-filterACDMRTUXB82308203.
List of file status codes from https://git-scm.com/docs/git-diff-index#Documentation/git-diff-index.txt---diff-filterACDMRTUXB82308203.
RebaseBackendApply refers to the "apply" backend.
RebaseBackendMerge refers to the "merge" backend.
RebaseInterruptConflict indicates that a rebase operation was interrupted due to a conflict.
RebaseInterruptDeliberate indicates that a rebase operation was interrupted deliberately by the user.
List of modes that git-spice cares about.
ResetHard resets the index and working tree to the specified commit.
ResetMixed resets the index to the specified commit but leaves the working tree unchanged.
ResetModeUnset is the default reset mode.
ResetSoft resets HEAD to the specified commit, leaving the index and working tree unchanged.
Supported object types.
ZeroHash is the hash of an empty Git object.
List of modes that git-spice cares about.

# Variables

ErrDetachedHead indicates that the repository is unexpectedly in detached HEAD state.
ErrNoRebase indicates that a rebase is not in progress.
ErrNotExist is returned when a Git object does not exist.

# Structs

BlobInfo is a single blob in a tree.
BranchDeleteOptions specifies options for deleting a branch.
CloneOptions configures the behavior of [Clone].
CommitDetail contains information about a commit.
CommitMessage is the subject and body of a commit.
CommitRequest is a request to commit changes.
CommitTreeRequest is a request to create a new commit.
Config provides access to Git configuration in the current context.
ConfigEntry is a single key-value pair in Git configuration.
ConfigOptions configures the behavior of a [Config].
CreateBranchRequest specifies the parameters for creating a new branch.
FetchOptions specifies parameters for the Fetch method.
FileStatus is a single file in a diff.
InitOptions configures the behavior of Init.
ListRemoteRefsOptions control the behavior of ListRemoteRefs.
ListTreeOptions specifies options for the ListTree operation.
LocalBranch represents a local branch in a repository.
OpenOptions configures the behavior of Open.
PullOptions specifies options for the Pull operation.
PushOptions specifies options for the Push operation.
RebaseInterruptError indicates that a rebasing operation was interrupted.
RebaseRequest is a request to rebase a branch.
RebaseState holds information about the current state of a rebase operation.
RemoteRef is a reference in a remote Git repository.
RenameBranchRequest specifies the parameters for renaming a branch.
Repository is a handle to a Git repository.
ResetOptions configures the behavior of Reset.
SetRefRequest is a request to set a ref to a new hash.
Signature holds authorship information for a commit.
TreeEntry is a single entry in a Git tree.
UpdateTreeRequest is a request to update an existing Git tree.

# Type aliases

CommitRange builds up arguments for a ListCommits command.
ConfigKey is divided into three parts: section.subsection.name subsection may be absent, or may be comprised of multiple parts.
FileStatusCode specifies the status of a file in a diff.
Hash is a 40-character Git object ID.
Mode is the octal file mode of a Git tree entry.
RebaseBackend specifies the kind of rebase backend in use.
RebaseInterruptKind specifies the kind of rebase interruption.
Refspec specifies which refs to fetch/submit for fetch/push operations.
ResetMode specifies the reset mode used in the form: git reset --<mode> <commit> The default mode is ResetMixed.
Type specifies the type of a Git object.