git2dart library

Dart bindings to libgit2.

Classes

AnnotatedCommit
A class representing an annotated commit in Git.
Blame
A class that provides blame information for a file.
BlameHunk
Represents a single hunk of blame information.
Blob
Branch
A class representing a Git branch.
CachedMemory
Information about current cache usage.
Callbacks
A class that encapsulates various callback functions used in Git operations.
Checkout
A class that provides functionality for checking out files and directories in a Git repository.
Commit
A class representing a Git commit object.
Config
A class representing Git configuration.
ConfigEntry
A class representing a single Git configuration entry.
ConflictEntry
Credentials
Abstract base class for all credential types.
Diff
DiffDelta
DiffFile
Description of one side of a delta.
DiffHunk
A class representing a hunk in a patch.
DiffLine
A class representing a single line in a patch hunk.
DiffStats
GitApplyLocation
Possible application locations for apply()
Identity
Index
IndexEntry
Keypair
Credential type for passphrase-protected SSH key authentication.
KeypairFromAgent
Credential type for SSH key authentication using an SSH agent.
KeypairFromMemory
Credential type for SSH key authentication with in-memory keys.
Libgit2
Main class for interacting with libgit2 library.
Mailmap
A class representing a Git mailmap, which maps commit author/committer names and emails to their canonical forms.
Merge
A class that provides functionality for merging Git objects.
MergeAnalysis
A class that represents the result of a merge analysis.
Note
A class representing a Git note.
Odb
A class representing a Git object database (ODB).
OdbObject
A class representing a Git object in the object database.
Oid
Represents a unique identifier (SHA-1) for a Git object.
PackBuilder
A packbuilder is used to create packfiles from a set of objects.
Patch
A class representing a Git patch, which contains the differences between two versions of a file or between two files.
PatchStats
Line counts of each type in a patch.
Rebase
A class representing a Git rebase operation.
RebaseOperation
A class representing a single operation in a rebase process.
Reference
RefLog
A class representing a Git reference log (reflog).
RefLogEntry
A class representing a single entry in a Git reference log.
Refspec
A class representing a Git refspec, which defines the mapping between local and remote references.
Remote
A class representing a Git remote repository.
RemoteCallback
Values used to override the remote creation and customization process during a repository clone operation.
RemoteReference
A class representing a reference in a remote repository.
Repository
RepositoryCallback
RevParse
A class for parsing Git revision specifications and finding corresponding objects.
RevSpec
A class representing a Git revision specification range.
RevWalk
A revision walker for traversing the commit history of a repository.
Signature
A class representing a Git signature (author/committer).
Stash
A class representing a Git stash entry.
Submodule
Tag
A class representing a Git tag object.
TransferProgress
Provides callers information about the progress of indexing a packfile, either directly or part of a fetch or clone that downloads a packfile.
Tree
A Tree object represents a Git tree, which is a hierarchical structure that represents the state of a directory in a Git repository at a particular point in time.
TreeBuilder
A class for constructing or modifying tree objects.
TreeEntry
A TreeEntry represents a single entry in a Git tree, which can be either a file (blob) or a subdirectory (tree).
UserPass
Credential type for plain-text username and password authentication.
Worktree
A class representing a Git worktree.

Enums

GitAttributeCheck
Combinations of these values determine the lookup order for attribute.
GitBlameFlag
Flags for indicating option behavior for git blame APIs.
GitBlobFilter
Flags to control the functionality of blob content filtering.
GitBranch
Basic type of any Git branch.
GitCheckout
Checkout behavior flags.
GitConfigLevel
Priority level of a config file. These priority levels correspond to the natural escalation logic (from higher to lower) when searching for config entries in git.
GitCredential
Supported credential types.
GitDelta
What type of change is described by a git_diff_delta?
GitDescribeStrategy
Reference lookup strategy.
GitDiff
Flags for diff options. A combination of these flags can be passed.
GitDiffFind
Formatting options for diff stats.
GitDiffFlag
Flags for the delta object and the file objects on each side.
GitDiffLine
Line origin, describing where a line came from.
GitDiffStats
Formatting options for diff stats.
GitDirection
Direction of the connection.
GitFeature
Combinations of these values describe the features with which libgit2 was compiled.
GitFetchPrune
Acceptable prune settings when fetching.
GitFilemode
Valid modes for index and tree entries.
GitIndexAddOption
Flags for APIs that add files matching pathspec.
GitIndexCapability
Capabilities of system that affect index actions.
GitMergeAnalysis
The results of mergeAnalysis indicate the merge opportunities.
GitMergeFileFavor
Merge file favor options to instruct the file-level merging functionality on how to deal with conflicting regions of the files.
GitMergeFileFlag
File merging flags.
GitMergeFlag
Flags for merge options.
GitMergePreference
The user's stated preference for merges.
GitObject
Basic type (loose or packed) of any Git object.
GitRebaseOperation
Type of rebase operation in-progress after calling rebase's next().
GitRepositoryInit
Option flags for Repository init.
GitRepositoryState
Repository state.
GitReset
Kinds of reset operation.
GitRevSpec
Revparse flags, indicate the intended behavior of the spec.
GitSort
Flags to specify the sorting which a revwalk should perform.
GitStash
Stash flags.
GitStashApply
Stash application flags.
GitStatus
Status flags for a single file.
GitSubmoduleIgnore
Submodule ignore values.
GitSubmoduleStatus
A combination of these flags will be returned to describe the status of a submodule. Depending on the "ignore" property of the submodule, some of the flags may never be returned because they indicate changes that are supposed to be ignored.
GitSubmoduleUpdate
Submodule update values
GitWorktree
Flags to alter working tree pruning behavior.
ReferenceType
Basic type of any Git reference.

Exceptions / Errors

Git2DartError
Represents an error that occurred in Git2Dart library.