package
1.10.1
Repository: https://github.com/avdkp/go-git.git
Documentation: pkg.go.dev

# Functions

Blame returns a BlameResult with the information about the last author of each line from file `path` at commit `c`.
Clone a repository into the given Storer and worktree Filesystem with the given options, if worktree is nil a bare repository is created.
CloneContext a repository into the given Storer and worktree Filesystem with the given options, if worktree is nil a bare repository is created.
Init creates an empty git repository, based on the given Storer and worktree.
No description provided by the author
NewRemote creates a new Remote.
Open opens a git repository using the given Storer and worktree filesystem, if the given storer is complete empty ErrRepositoryNotExists is returned.
PlainClone a repository into the path with the given options, isBare defines if the new repository will be bare or normal.
PlainCloneContext a repository into the path with the given options, isBare defines if the new repository will be bare or normal.
PlainInit create an empty git repository at the given path.
No description provided by the author
PlainOpen opens a git repository from the given path.
PlainOpenWithOptions opens a git repository from the given path with specific options.

# Constants

No description provided by the author
AllTags fetch all tags from the remote (i.e., fetch remote tags refs/tags/* into local tags with the same name).
AppendPeeled appends peeled reference names to the reference list.
No description provided by the author
DefaultRemoteName name of the default Remote, just like git command.
DefaultSubmoduleRecursionDepth allow recursion in a submodule operation.
No description provided by the author
GitDirName this is a special folder where all the git stuff is.
HardReset resets the index and working tree.
IgnorePeeled ignores all peeled reference names.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MergeReset resets the index and updates the files in the working tree that are different between Commit and HEAD, but keeps those which are different between the index and working tree (i.e.
MixedReset resets the index but not the working tree (i.e., the changed files are preserved but not marked for commit) and reports what has not been updated.
No description provided by the author
NoRecurseSubmodules disables the recursion for a submodule operation.
NoTags fetch no tags from the remote at all.
OnlyPeeled returns only peeled reference names.
No description provided by the author
SoftReset does not touch the index file or the working tree at all (but resets the head to <commit>, just like all modes do).
TagFollowing any tag that points into the histories being fetched is also fetched.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
ErrBranchExists an error stating the specified branch already exists.
No description provided by the author
ErrBranchNotFound an error stating the specified branch does not exist.
No description provided by the author
No description provided by the author
ErrDestinationExists in an Move operation means that the target exists on the worktree.
ErrEmptyCommit occurs when a commit is attempted using a clean working tree, with no changes to be committed.
No description provided by the author
No description provided by the author
ErrFetching is returned when the packfile could not be downloaded.
No description provided by the author
No description provided by the author
ErrGlobNoMatches in an AddGlob if the glob pattern does not match any files in the worktree.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrTagExists an error stating the specified tag already exists.
ErrTagNotFound an error stating the specified tag does not exist.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AddOptions describes how an `add` operation should be performed.
BlameResult represents the result of a Blame operation.
CheckoutOptions describes how a checkout operation should be performed.
CleanOptions describes how a clean should be performed.
CloneOptions describes how a clone should be performed.
CommitOptions describes how a commit operation should be performed.
CreateTagOptions describes how a tag object should be created.
FetchOptions describes how a fetch should be performed.
FileStatus contains the status of a file in the worktree.
ForceWithLease sets fields on the lease If neither RefName nor Hash are set, ForceWithLease protects all refs in the refspec by ensuring the ref of the remote in the local repsitory matches the one in the ref advertisement.
GrepOptions describes how a grep should be performed.
GrepResult is structure of a grep result.
No description provided by the author
Line values represent the contents and author of a line in BlamedResult values.
ListOptions describes how a remote list should be performed.
LogOptions describes how a log action should be performed.
No description provided by the author
No description provided by the author
PlainOpenOptions describes how opening a plain repository should be performed.
No description provided by the author
PullOptions describes how a pull should be performed.
PushOptions describes how a push should be performed.
Remote represents a connection to a remote repository.
No description provided by the author
Repository represents a git repository.
ResetOptions describes how a reset operation should be performed.
Submodule a submodule allows you to keep another Git repository in a subdirectory of your repository.
SubmoduleStatus contains the status for a submodule in the worktree.
SubmoduleUpdateOptions describes how a submodule update should be performed.
Worktree represents a git worktree.

# Type aliases

No description provided by the author
PeelingOption represents the different ways to handle peeled references.
No description provided by the author
ResetMode defines the mode of a reset operation.
Status represents the current status of a Worktree.
StatusCode status code of a file in the Worktree.
SubmoduleRescursivity defines how depth will affect any submodule recursive operation.
Submodules list of several submodules from the same repository.
SubmodulesStatus contains the status for all submodiles in the worktree.
No description provided by the author