package
0.0.2
Repository: https://github.com/alis-exchange/buf.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package gittest provides testing utilities for git repositories.

# Functions

CheckedOutBranchWithRemote sets the function to only loop over branches present in the passed remote at their respective HEADs.
ForEachBranchWithRemote sets the function to only loop over branches present in the passed remote at their respective HEADs.
ForEachCommitWithBranchStartPoint sets a branch as a starting point to start the loop.
ForEachCommitWithBranchStartPointWithRemote uses the remote position for the branch, instead of the local position.
ForEachCommitWithHashStartPoint sets a git hash as a starting point to start the loop.
HEADCommitWithBranch sets the function to return the HEAD commit for a specific branch instead of the default branch.
HEADCommitWithRemote sets the function to return the HEAD commit for the branch that is present in the passed remote.
NewBranchName returns a new Name for the branch.
NewCloner returns a new Cloner.
NewHashFromHex creates a new hash that is validated.
NewLister returns a new Lister.
NewRefName returns a new Name for the ref.
NewRefNameWithBranch returns a new Name for the ref while setting branch as the clone target.
NewTagName returns a new Name for the tag.
OpenRepository opens a new Repository from a `.git` directory.
OpenRepositoryWithDefaultBranch configures the default branch for this repository.

# Constants

DotGitDir is a relative path to the `.git` directory.
ModeDir is a tree to be unpacked as a subdirectory in the current directory.
ModeExec is a blob that should be written with the executable bit set.
ModeFile is a blob that should be written as a plain file.
ModeSubmodule is a commit that the submodule is checked out at.
ModeSymlink is a blob with its content being the path linked to.
ModeUnknown is a mode's zero value.

# Variables

ErrTreeNodeNotFound is an error found in the error chain when ObjectReader is unable to find the target object.
ErrStopForEach is provided for callers to use it when they want to gracefully stop a ForEach* function.
ErrTreeNodeNotFound is an error found in the error chain when Tree#Descendant is unable to find the target tree node.

# Structs

ClonerOptions are options for a new Cloner.
CloneToBucketOptions are options for Clone.
ListFilesAndUnstagedFilesOptions are options for ListFilesAndUnstagedFiles.

# Interfaces

AnnotatedTag represents an annotated tag object.
Cloner clones git repositories to buckets.
Commit represents a commit object.
Hash represents the hash of a Git object (tree, blob, or commit).
Ident is a git user identifier.
Lister lists files in git repositories.
Name is a name identifiable by git.
ObjectReader reads objects (commits, trees, blobs, tags) from a `.git` directory.
Repository is a git repository that is backed by a `.git` directory.
Tree is a git tree, which are a manifest of other git objects, including other trees.
TreeNode is a reference to an object contained in a tree.

# Type aliases

CheckedOutBranchOption are options that can be passed to CheckedOutBranch.
ForEachBranchOption are options that can be passed to ForEachBranch.
ForEachCommitOption are options that can be passed to ForEachCommit.
No description provided by the author
HEADCommitOption are options that can be passed to HEADCommit.
ObjectMode is how to interpret a tree node's object.
OpenRepositoryOption configures the opening of a repository.