# Functions
Clone clones a repository.
Init initializes and opens a new git repository.
IsBinary detects if data is a binary value based on: http://git.kernel.org/cgit/git/git.git/tree/xdiff-interface.c?id=HEAD#n198.
IsZeroHash returns whether the hash is a zero hash.
LatestFile returns the contents of the first file at the specified path pattern in the repository and its file path.
NewCommand creates a new git command.
Open opens a git repository at the given path.
UpdateServerInfo updates the server info file for the given repo path.
# Variables
DiffMaxFileLines is the maximum number of lines to show in a file diff.
DiffMaxFile is the maximum number of files to show in a diff.
DiffMaxLineChars is the maximum number of characters to show in a line diff.
ErrDirectoryNotFound is returned when a directory is not found.
ErrFileNotFound is returned when a file is not found.
ErrNotAGitRepository is returned when the given path is not a Git repository.
ErrReferenceNotExist is returned when a reference does not exist.
ErrRevisionNotExist is returned when a revision is not found.
# Structs
Attribute represents a Git attribute.
Diff is a wrapper around git.Diff with helper methods.
DiffFile is a wrapper to git.DiffFile with helper methods.
DiffFileChange represents a file diff.
DiffSection is a wrapper to git.DiffSection with helper methods.
File is a wrapper around git.Blob with helper methods.
Reference is a wrapper around git.Reference with helper methods.
Repository is a wrapper around git.Repository with helper methods.
Tree is a wrapper around git.Tree with helper methods.
TreeEntry is a wrapper around git.TreeEntry with helper methods.
# Type aliases
CloneOptions contain options for cloning a repository.
CommandOptions contain options for running a git command.
Commit is a wrapper around git.Commit with helper methods.
Commits is a list of commits.
Entries is a wrapper around git.Entries.
FileStats.
ReferenceName is a Refspec wrapper.
RunInDirOptions are options for RunInDir.
Tag is a git tag.