All Classes and Interfaces
Class
Description
Git configuration option
core.abbrev
A prefix abbreviation of an
ObjectId
.Exception thrown when a hook returns a process result with a value different
from 0.
Implementation of
AdvertiseRefsHook
that advertises the same refs for
upload-pack and receive-pack.Base class for default methods as
AbstractMatcher.toString()
and such.Basic commit graph renderer for graphical user interfaces.
Walks a Git tree (directory) in Git sort order.
A class used to execute a
Add
command.Add object notes.
A RevFilter that adds the visited commits to
bitmap
as a side
effect.A RevFilter that adds the visited commits to
bitmap
as a side effect.A RevFilter that adds the visited commits to
bitmap
as a side
effect.Hook to allow callers to take over advertising refs to the client.
AdvertiseRefsHook
that delegates to a list
of other hooks.A simple HTTP REST client for the Amazon S3 service.
An
AbbreviatedObjectId
cannot be extended.Includes a commit only if all subfilters include the same commit.
Includes a tree entry only if all subfilters include the same tree entry.
A (possibly mutable) SHA-1 abstraction.
Apply a patch to files and/or to the index.
Encapsulates the result of a
ApplyCommand
Create an archive of files from a named tree.
Archival format.
Signals an attempt to use an archival format that ArchiveCommand
doesn't know about (for example due to a typo).
Queue to open objects asynchronously.
Queue to examine object sizes asynchronously.
Asynchronous operation handle.
Queue to lookup and parse objects asynchronously.
Represents an attribute.
The attribute value state
see also https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
Represents a set of attributes for a path
The attributes handler knows how to retrieve, parse and merge attributes from
the various gitattributes files.
Represents a bundle of attributes inherited from a base directory.
An interface used to retrieve the global and info
AttributesNode
s.Interface for classes which provide git attributes
A single attributes rule corresponding to one line in a .gitattributes file.
Matches only commits whose author name matches the pattern.
An InputStream that expands LF to CRLF.
An OutputStream that expands LF to CRLF.
An InputStream that normalizes CRLF to LF.
A special exception thrown when
AutoLFInputStream
is told to
throw an exception when attempting to read a binary file.Flags for controlling auto-detection of binary vs.
An OutputStream that reduces CRLF to LF.
Utility class for signing requests to AWS service endpoints using the V4
signing protocol.
Encodes and decodes to and from Base64 notation.
Base-85 encoder/decoder.
Base helper class for implementing operations connections.
Fetch implementation using the native Git pack transfer service.
Push implementation using the native Git pack transfer service.
Base builder to customize repository construction.
ProgressMonitor that batches update events.
Batch of reference updates to be applied to a repository.
Describes the
DfsPackFile
just
before its index is loaded.Receives
BeforeDfsPackIndexLoadedEvent
s.BinaryBlobException is used to signal that binary data was found
in a context that requires text (eg.
Recreate a stream from a base stream and a GIT pack delta.
An
InputStream
that applies a binary delta to a base on the fly.Part of a "GIT binary patch" to describe the pre-image or post-image
Type of information stored in a binary hunk.
A stream that decodes git binary patch data on the fly.
An
OutputStream
that encodes data for a git binary patch.A commit object for which a bitmap index should be built.
Builder of BitmapCommit.
A compressed bitmap representation of the entire object graph.
A bitmap representation of ObjectIds that can be iterated to return the
underlying
ObjectId
s or operated on with other Bitmap
s.A builder for a bitmap.
Report the results of
BitmapIndex.getBitmap(AnyObjectId)
A compressed bitmap representation of the entire object graph.
Wrapper for a
EWAHCompressedBitmap
and PackBitmapIndex
.Base object type accessed during bitmap expansion.
Checks if all objects are reachable from certain starting points using
bitmaps.
Checks the reachability using bitmaps.
Helper class to do ObjectWalks with pack index bitmaps.
Blame command for building a
BlameResult
for a
file path.Generate author information for lines based on a provided file.
Collects line annotations for inspection by applications.
Configuration file based on the blobs stored in the repository.
Verifies that a blob object is a valid object.
Random access list that allocates entries in blocks.
Thrown if
ReftableWriter
cannot fit a reference.Provides content blocks of file.
A boolean value that can also have an unset state.
Branch section of a Git configuration file.
Config values for branch.[name].rebase (and pull.rebase).
Status of a branch's relation to its remote-tracking branch.
Creates a Git bundle file, for sneaker-net transport to another system.
An
InputStream
backed by a ByteBuffer
.Abstract authenticator which remembers prior authentications.
Authentication data to remember and reuse.
Describes a pack file
ObjectReuseAsIs
can append
onto a stream.Provider of URIs corresponding to cached packs.
Information about a packfile.
Exception thrown when an operation was canceled
An OutputStream that keeps a digest and checks every N bytes for
cancellation.
Thrown when an operation was canceled
Thrown when trying to delete a branch which is currently checked out
Parses raw Git trees from the canonical semi-text/semi-binary format.
Capabilities protocol v2 request.
A builder for
CapabilitiesV2Request
.A credentials provider chaining multiple credentials providers
A changed path filter for a commit.
Utilities for creating and working with Change-Id's, like the one used by
Gerrit Code Review.
An object that can be used to check out many files.
Checkout a branch to the working tree.
Stage to check out, see
CheckoutCommand.setStage(Stage)
.Exception thrown when a command can't succeed because of unresolved
conflicts.
Exception thrown if a conflict occurs during a merge checkout.
Parsed information about a checkout.
Parsed information about a checkout.
Encapsulates the result of a
CheckoutCommand
The status
A class used to execute a
cherry-pick
command.Encapsulates the result of a
CherryPickCommand
.The cherry-pick status
Remove untracked files from the working tree
Clone a repository into a new working directory
Callback for status of clone operation.
A file in the Git "diff --cc" or "diff --combined" format.
Hunk header for a hunk appearing in a "diff --cc" style patch.
Runs a command with help of FS.
Thrown when an external command failed
Pre-defined command line diff tools.
Pre-defined merge tools.
Mutable builder to construct a commit recording the state of a project.
A class used to execute a
Commit
command.The standard "commit" configuration parameters.
How to clean up commit messages when committing.
The CommitGraph is a supplemental data structure that accelerates commit
graph walks.
Metadata of a commit in commit data chunk.
Thrown when a commit-graph file's format is different from we expected
The loader returns the representation of the commit-graph file content.
Writes a commit-graph formatted file.
Statistics collected during a single commit graph write.
The
commit-msg
hook implementation.Matches only commits whose committer name matches the pattern.
Selects commits based upon the commit time field.
An exception detailing multiple reasons for failure.
Exception thrown when a command wants to update a ref but failed because
another process is accessing (or even also updating) the ref.
Git style
.config
, .gitconfig
, .gitmodules
file.Converts enumeration values into configuration options and vice-versa,
allowing to match a config option with an enum value.
Parses a section of the configuration into an application model object.
Describes a change to one or more keys in the configuration.
Receives
ConfigChangedEvent
s.Constants for use with the Configuration classes: section names,
configuration keys
Indicates a text string is not a valid Git style configuration.
Represent connection for operation on a remote repository.
Checks that a received pack only depends on objects which are reachable from
a defined set of references.
POJO which is used to pass all information which is needed to perform
connectivity check.
Misc.
How to handle content conflicts.
Supplies the content of a file for
DiffFormatter
.A pair of sources to access the old and new sides of a DiffEntry.
This class keeps git repository core parameters.
Permissible values for
core.autocrlf
.Permissible values for
core.checkstat
.Permissible values for
core.eol
.EOL stream conversion protocol.
Options for hiding files whose names start with a period.
Permissible values for
core.logAllRefUpdates
.Options for symlink handling
Permissible values for
core.trustPackedRefsStat
.Exception thrown when an object cannot be read from Git.
Exception thrown when encounters a corrupt pack index file.
The error type of a corrupt index file.
Counts the number of bytes written.
Used to create a local branch.
The modes available for setting up the upstream configuration
(corresponding to the --set-upstream, --track, --no-track options
A credential requested from a
CredentialsProvider
.An item whose value is stored as a char[] and is therefore clearable.
An advice message presented to the user, with no response required.
Prompt for a password, which is masked on input.
An item whose value is stored as a string.
Prompt for a username, which is not masked on input.
An item whose value is a boolean choice, presented as Yes/No.
Provide credentials for use in connecting to Git repositories.
Basic daemon for the anonymous
git://
transport protocol.Active network client of
Daemon
.A service exposed by
Daemon
over anonymous
git://
.A queue of commits sorted by commit time order.
Default implementation of the
NoteMerger
.An
TypedConfigGetter
that throws
IllegalArgumentException
on invalid values.An
SSLSocketFactory
that delegates to another factory and allows
configuring the created socket via DelegatingSSLSocketFactory.configure(SSLSocket)
before it is
returned.Used to delete one or several branches.
Used to delete one or several tags.
Encodes an instruction stream for
BinaryDelta
.Index of blocks in a source file.
Interface for revision walkers that perform depth filtering.
RevCommit with a depth (in commits) from a root.
Subclass of ObjectWalk that performs depth filtering.
Subclass of RevWalk that performs depth filtering.
Given a commit, show the most recent tag that is reachable from a commit.
Exception thrown when a command expected a non-detached
HEAD
referenceCaches slices of a
BlockBasedFile
in memory for
faster read access.Configuration parameters for
DfsBlockCache
.Consumer of DfsBlockCache loading and eviction events for indexes.
Writes
DfsRepository
to a Git bundle.A DfsPackFile available for reuse as-is.
Config implementation used by DFS repositories.
Verify the validity and connectivity of a DFS repository.
Repack and garbage collect a repository.
Inserts objects into the DFS.
Manages objects stored in
DfsPackFile
on a storage
system.Snapshot of packs scanned in a single pass.
Sources for a pack file.
Builder for describing
DfsObjDatabase.PackSource
ordering where some values are
explicitly considered equal to others.Output stream to create a file on the DFS.
Combine several pack files into one pack.
Description of a DFS stored pack/index file.
A Git version 2 pack file representation.
Parses a pack stream into the DFS, by creating a new pack and index.
Describes a change to the list of packs in a
DfsRepository
.Receives
DfsPacksChangedEvent
s.Reader to access repository content through.
Announces when data is loaded by reader
Immutable copy of a DFS block metadata
IO statistics for a
DfsReader
.POJO to accumulate IO statistics.
Options controlling how objects are read from a DFS stored repository.
Abstract DfsRefDatabase class.
Collection of references managed by this database.
A reftable stored in
DfsBlockCache
.A
DfsRefDatabase
that uses
reftable for storage.Tracks multiple open
ReftableReader
instances.A Git repository on a DFS.
Constructs a
DfsRepository
.A description of a Git repository on a DFS.
Key used by
DfsBlockCache
to disambiguate streams.Translation bundle for the DFS storage implementation.
Supported diff algorithm
Show changes between commits, commit and working tree, etc.
Keeps track of diff related configuration options.
Permissible values for
diff.renames
.A value class representing a change to a file
General type of change a single file-level patch describes.
Specify the old or new side for more generalized access.
Format a Git style patch script.
Thrown when a thread executing a diff is interrupted
Keeps track of difftool related configuration options.
Manages diff tools.
Support for the Git dircache (aka index file).
Updates a
DirCache
by adding individual
DirCacheEntry
s.Iterate and update a
DirCache
as part of a
TreeWalk
.This class handles checking out one or two trees merging with the index.
Metadata used in checkout process
Something that can supply an
InputStream
.Updates a
DirCache
by supplying discrete
edit commands.Deletes a single file entry from the index.
Recursively deletes all paths under a subtree.
Any index record update.
A single file (or stage of a file) in a
DirCache
.Iterate a
DirCache
as part of a
TreeWalk
.Thrown by DirCache code when entries overlap in impossible way.
Single tree record from the 'TREE'
DirCache
extension.An OutputStream which always throws IllegalStateExeption during write.
A modified region detected between two versions of roughly the same content.
Type of edit
Specialized list of
Edit
s in a document.Exception thrown when a newly created commit does not contain any changes
A convenient base class which provides empty method bodies for all
ProgressMonitor methods.
Iterator over an empty tree (a directory with no files).
Attempt to add an entry to a tree that already exists.
Utility used to create input and output stream wrappers for
CoreConfig.EolStreamType
Equality utilities.
The external tool interface.
The merge tool interface.
Utilities for diff- and merge-tools.
"Fast" (compared with IgnoreRule) git ignore rule implementation supporting
also double star
**
pattern.A class used to execute a
Fetch
command.Callback for status of fetch operation.
Lists known refs from the remote and copies objects of selected refs.
Final status after a successful fetch from a remote repository.
Fetch request from git protocol v2.
A queue of commits in FIFO order.
The configuration file that is stored in the file of the file system.
Traditional file system for commit-graph.
The element used as left or right file for compare.
The file element type.
Patch header describing an action for a single file path.
Type of patch used by this file.
Constants describing various file modes recognized by GIT.
A hierarchical cache of
FileMode
s per git path.An item from a
FileModeCache
, recording information about a git
path (known from context).This class can be used to match filenames against fnmatch like patterns.
Implements RefDatabase using reftable for storage.
A mutable stack of reftables on local filesystem storage.
Writer is a callable that writes data to a reftable under construction.
Represents a Git repository.
Constructs a
FileRepository
.Default resolver serving from the local filesystem.
Caches when a file was last read, making it possible to detect future edits.
Working directory iterator for standard Java IO.
A default implementation of a FileModeStrategy; defaults to treating
nested .git directories as gitlinks, etc.
Wrapper for a standard Java IO file
An interface representing the methods used to determine the FileMode for
a FileEntry.
A FileModeStrategy that implements native git's DIR_NO_GITLINKS
behavior.
File Utilities
An abstraction for JGit's builtin implementations for hooks and filters.
The factory responsible for creating instances of
FilterCommand
.Registry for built-in filters
Provides rename detection in special cases such as blame, where only a subset
of the renames detected by
RenameDetector
is of interest.Exception thrown when the execution of a filter command failed
Represents either a filter specified in a protocol "filter" line, or a
placeholder to indicate no filtering.
In a push, the client sends a list of commands.
In the pack negotiation phase (protocol v0/v1), the client sends a list of
wants.
Updates the internal path filter to follow copy/renames.
Case insensitive key for a
FooterLine
.Single line at the end of a message, such as a "Signed-off-by: someone".
An error in a patch script
Classification of an error.
Abstraction to support various file system operations not in Java.
Base FS for POSIX based systems
FS implementation for Windows
FS implementation for Cygwin on Windows
File attributes we typically care for.
Result of an executed process.
Attributes of FileStores on this system
This class creates FS instances.
A token representing a file created by
FS.createNewFileAtomic(File)
.Holds all fsck errors of a git repository.
Represents a corrupt pack index file.
Represents a corrupt object.
A read-only pack parser for object validity checking.
An interface providing FTP operations over a
RemoteSession
.Simplified remote directory entry.
An
Exception
for reporting SFTP errors.A connectivity checker that uses the entire reference database to perform
reachability checks when checking the connectivity of objects.
A class used to execute a
gc
command.A garbage collector for git
FileRepository
.A class holding statistical data for a FileRepository regarding how many
objects are stored as loose or packed objects
Offers a "GitPorcelain"-like API to interact with a git repository.
Superclass of all exceptions thrown by the API classes in
org.eclipse.jgit.api
Common superclass of all commands in the package
org.eclipse.jgit.api
A utility for formatting dates according to the Git log.date formats plus
extensions.
Git and JGit formats
Parses strings with time and date specifications into
Date
.Git can fire off custom scripts when certain important actions occur.
A .gitmodules file found in the pack.
Wire constants for the native Git protocol.
Attribute node loaded from global system-wide file.
Typed access to GPG related configuration options.
Config values for gpg.format.
Creates GPG signatures for Git objects.
A structure for holding GPG signature together with additional related data.
A
GpgVerifier
can verify GPG signatures on git commits and tags.A
SignatureVerification
returns data about a (positively or
negatively) verified signature.The owner's trust in a public key.
A
GpgSignatureVerifierFactory
creates GpgSignatureVerifier
instances.Creates GPG signatures for Git objects.
The commits which are used by the commit-graph writer to:
List commits in SHA1 order.
Get the position of a specific SHA1 in the list.
Factory to detect which GSSManager implementation should be used.
Wraps a
Sequence
to assign hash codes to
elements.Wrap another comparator for use with
HashedSequence
.Wraps two
Sequence
instances to cache their
element hash codes.Encodes and decodes to and from hexadecimal notation.
An extended form of Bram Cohen's patience diff algorithm.
The nonce generator which was first introduced to git-core.
Holder of an object.
Factory class for instantiating supported hooks.
A representation of the "http.*" config values in a git
Config
.Config values for http.followRedirect.
The interface of connections used during HTTP communication.
The interface of a factory returning
HttpConnection
A
HttpConnectionFactory
that supports client-side sessions that can
maintain state and configure connections.A
GitSession
groups the multiple HTTP connections
TransportHttp
uses for
the requests it makes during a git fetch or push.Extra utilities to support usage of HTTP.
The base class for transports that use HTTP as underlying protocol.
Hunk header describing the layout of a single block of lines
Details about an old image of the file.
Represents a bundle of ignore rules inherited from a base directory.
Result from
IgnoreNode.isIgnored(String, boolean)
.Attempt to modify a rebase-todo file in an unsupported way
Generic path matcher.
An inconsistency with respect to handling different object types.
Describes a change to one or more paths in the index file.
Receives
IndexChangedEvent
s.Compares the index, a tree, and the working directory Ignored files are not
taken into account.
Represents the state of the index for a certain path regarding the stages
- which stages exist for a path and which not (base, ours, theirs).
A factory to producing WorkingTreeIterators
A performance optimized variant of
TreeFilter.ANY_DIFF
which should be
used when among the walked trees there is a
DirCacheIterator
and a
WorkingTreeIterator
.Cannot read the index.
Cannot write a modified index.
Creates zlib based inflaters as necessary for object decompression.
Attribute node loaded from the $GIT_DIR/info/attributes file.
A handler for when the diff/merge tool manager wants to inform the user that
no tool has been configured and one of the default tools will be used.
Create an empty git repository or reinitalize an existing one
Git repository stored entirely in the local process memory.
Builder for in-memory repositories.
DfsObjDatabase used by InMemoryRepository.
A filter for extracting changes between two versions of the dircache.
Internal API to assist
org.eclipse.jgit.http.server
.Triggers an interrupt on the calling thread if it doesn't complete a block.
A more efficient List<Integer> using a primitive integer array.
A comparator of primitive ints.
Exception thrown when a command fails due to an invalid configuration
Exception thrown when a merge command was called without specifying the
proper amount/type of merge heads.
Thrown when an invalid object id is passed in as an argument.
Thrown when JGit detects and refuses to use an invalid path
Thrown when a pattern passed in an argument was wrong.
Exception thrown if a rebase step is invalid.
Exception thrown when an invalid Ref name was encountered
Exception thrown when a fetch command was called with an invalid remote
Exception thrown when a tag command was called with an invalid tag name (or
null), such as bad~tag.
Input/Output utilities
OutputStream isolated from interrupts.
Implementation of connectivity checker which tries to do check with smaller
set of references first and if it fails will fall back to check against all
advertised references.
A
HttpConnection
which simply
delegates every call to a HttpURLConnection
.A factory returning instances of
JDKHttpConnection
Exception thrown when during command execution a low-level exception from the
JGit library is thrown.
Translation bundle for JGit core
An object is too big to load into memory as a single byte array.
Object size exceeds JVM limit of 2 GiB per byte array.
Object size exceeds the caller's upper limit.
An error caused by the JVM being out of heap space.
Lazily loads a set of ObjectIds, one per line.
Matcher for simple regex patterns starting with an asterisk, e.g.
Represents an optionally present LFS support implementation
Encapsulate a potentially exchanged
InputStream
along with the
expected stream content length.A command to enable LFS.
A queue of commits in LIFO order.
Wraps a
InputStream
, limiting the number of bytes which can
be read.Used to obtain a list of branches.
The modes available for listing branches (corresponding to the -r and -a
options)
Tracks a previously registered
RepositoryListener
.Manages a thread-safe list of
RepositoryListener
s.List object notes.
Used to obtain a list of tags.
An exception occurring when a file cannot be locked
Git style file locking and replacement.
A class used to execute a
Log
command.Iterator over logs inside a
Reftable
.A more efficient List<Long> using a primitive long array.
Simple Map<long, Object>.
Compares two sequences primarily based upon hash codes.
Map with only up to n entries.
ls-refs protocol v2 request.
A builder for
LsRefsV2Request
.The ls-remote command
Repo XML manifest parser.
A callback to read included xml files.
Limits the number of commits output.
Provides the merge algorithm which does a three-way merge on content provided
as RawText.
One chunk from a merge result.
A state telling whether a MergeChunk belongs to a conflict or not.
A class used to execute a
Merge
command.Values for the "merge.conflictStyle" git config.
The modes available for fast forward merges corresponding to the
--ff
, --no-ff
and --ff-only
options under branch.<name>.mergeoptions
.The modes available for fast forward merges corresponding to the
options under
merge.ff
.Holds configuration for merging into a given branch
Merges multiple reference tables together.
A class to convert merge results into a Git conformant textual presentation
Formatter for constructing the commit message for a merge commit.
Instance of a specific
MergeStrategy
for a
single Repository
.Encapsulates the result of a
MergeCommand
.The result of merging a number of
Sequence
objects.The status the merge resulted in.
A method of combining two or more trees together to form an output tree.
Keeps track of merge tool related configuration options.
Manages merge tools.
Matches only commits whose message matches the pattern.
Combines messages from an OutputStream (hopefully in UTF-8) and a Writer.
Indicates a base/common object was required, but is not found.
An expected object is missing.
Enables monitoring JGit via JMX
A provider of time.
A
MonotonicClock
based on
System.currentTimeMillis
.The commit to be cherry-pick'ed did not have exactly one parent
A boxed integer that can be modified.
A mutable SHA-1 abstraction.
Diff algorithm, based on "An O(ND) Difference Algorithm and its Variations",
by Eugene Myers.
Specialized TreeWalk to detect directory-file (D/F) name conflicts.
Matcher built from patterns for file names (single path segments).
Command to find human-readable names of revisions.
Conversion utilities for network byte order handling.
NetRC file parser.
.netrc file entry
Simple .netrc credentials provider.
Wraps all cookies persisted in a Netscape Cookie File Format
being referenced via the git config http.cookieFile.
A cache of all known cookie files (
NetscapeCookieFile
).The purpose of this class is to provide NLS (National Language Support)
configurable per thread.
A
X509TrustManager
that doesn't verify anything.Thrown when a pattern contains a character group which is open to the right
side or a character class which is open to the right side.
Exception thrown when the options given to a command don't include a
file pattern which is mandatory for processing.
Exception thrown when a command expected the
HEAD
reference to exist
but couldn't find such a referenceException thrown if a merge fails because no merge base could be determined.
An enum listing the different reason why no merge base could be
determined.
Exception thrown when the options given to a command don't include a
specification of a message text (e.g.
A NonceGenerator is used to create a nonce to be sent out to the pusher who
will sign the nonce to prove it is not a replay attack on the push
certificate.
JGit's replacement for the
javax.annotation.Nonnull
.Thrown when a Pack is found not to contain the pack signature defined by git.
Indicates a remote repository does not exist.
In-memory representation of a single note attached to one object.
Index of notes from a note branch.
Three-way note tree merge.
Three-way note merge operation.
This exception will be thrown from the
NoteMerger
when a conflict on Notes content is
found during merge.Skip
WorkingTreeIterator
entries that
appear in gitignore files.Thrown when branch deletion fails due to unmerged data
Includes a commit only if the subfilter does not include the commit.
JGit encountered a case that it knows it cannot yet handle.
Includes an entry only if the subfilter does not include the entry.
Indicates a
Repository
has no working directory,
and is thus bare.Marks types that can hold the value
null
at run time.Dummy message digest consisting of only null bytes with the length of an
ObjectId.
An OutputStream which ignores everything written to it.
A NullProgressMonitor does not report progress anywhere.
Common base class for
CommitBuilder
and TagBuilder
.Verifies that an object is formatted correctly.
Potential issues identified by the checker.
A callback to tell caller the count of objects ASAP.
Abstraction of arbitrary object storage.
Traditional file system based
ObjectDatabase
.Consumes a pack stream and stores as a pack file in
ObjectDirectory
.Selects interesting objects when walking.
A SHA-1 abstraction.
Fast, efficient map for
ObjectId
subclasses in
only one map.Type of entry stored in the
ObjectIdOwnerMap
.A reference to a non-tag object coming from a cached source.
An annotated tag whose peeled object has been cached.
Any reference whose peeled value is not yet known.
Helper to serialize
ObjectId
instances.Simple set of ObjectIds.
Fast, efficient map specifically for
ObjectId
subclasses.object-info request.
A builder for
ObjectInfoRequest
.Inserts objects into an existing
ObjectDatabase
.Wraps a delegate ObjectInserter.
An inserter that can be used for formatting and id generation only.
Base class for a set of loaders for different representations of Git objects.
Wraps a delegate ObjectLoader.
Simple loader around the cached byte array.
Checks if all objects are reachable from certain starting points.
Reads an
ObjectDatabase
for a single thread.Wraps a delegate ObjectReader.
Extension of
ObjectReader
that supports reusing
objects in packs.Stream of data coming from an object loaded by
ObjectLoader
.Simple filter stream around another stream.
Simple stream around the cached byte array created by a loader.
Per-object state used by
PackWriter
.Specialized subclass of RevWalk to include trees, blobs and tags.
When walking over a tree and blob graph, objects are usually marked as
seen as they are visited and this "seen" status is checked upon the next
visit.
Cannot store an object in the object database.
Fairly complete configuration parser for the openssh ~/.ssh/config file.
A host entry from the ssh config file.
Class holding result of operation on remote repository.
Interface representing a reference to a potentially mutable optional object.
A permanently empty Optionally
A permanent(hard) reference to an object
A SoftReference Optionally
Includes a commit if any subfilters include the same commit.
Includes a tree entry if any subfilters include the same tree entry.
A Git version 2 pack file representation.
Logical representation of the bitmap data stored in the pack index.
Supplier that propagates IOException.
Helper for constructing
PackBitmapIndex
es.Data object for the on disk representation of a bitmap entry.
A PackBitmapIndex that remaps the bitmaps in the previous index to the
positions in the new pack index.
An entry in the old PackBitmapIndex.
Creates the version 1 pack bitmap index files.
Configuration used by a pack writer when constructing the stream.
Description of an object stored in a pack file, including offset.
Read Git style pkt-line formatting from an input stream.
IOException thrown by read when the configured input limit is exceeded.
Iterator over packet lines.
Write Git style pkt-line formatting to an output stream.
A pack file extension.
A pack file (or pack related) File.
Represent mutable entry of pack index consisting of object id and offset
in pack (both mutable).
Creates a table of contents to support random access by
Pack
.Object inserter that inserts one pack per call to
PackInserter.flush()
, and never
inserts loose objects.Thrown when a Pack previously failed and is known to be unusable
A
PackLock
describes a .keep
file that holds a pack in place.Keeps track of a
Pack
's
associated .keep
file.Thrown when a Pack no longer matches the PackIndex.
Index of object sizes in a pack
It is not guaranteed that the implementation contains the sizes of all
objects (e.g.
Chooses the specific implementation of the object-size index based on the
file version.
Write an object index in the output stream
Custom output stream to support
PackWriter
.Parses a pack stream and imports it for an
ObjectInserter
.Type and size information about an object in the database buffer.
Location data is being obtained from.
Information about an unresolved delta in this pack stream.
Indicates a protocol error has occurred while fetching/pushing objects.
Reverse index for forward pack index.
Factory for creating instances of
PackReverseIndex
.Writes reverse index files conforming to the requested version.
Statistics about
PackWriter
pack creation.POJO for accumulating the statistics.
Statistics about a single type of object (commits, tags, trees and
blobs).
POJO for accumulating the ObjectType statistics.
Marker interface an object transport using Git pack transfers.
PackWriter class is responsible for generating pack files from specified set
of objects from repository.
Configuration related to the packfile URI feature.
Possible states that a PackWriter can be in.
A parsed collection of
FileHeader
s from a
unified diff patch fileApplies a patch to files and the index.
A wrapper for returning both the applied tree ID and the applied files
list, as well as file specific errors.
A wrapper for a patch applying error that affects a given file.
Exception thrown when applying a patch fails
Exception thrown when applying a patch fails due to an invalid format
A DiffFormatter used to calculate the patch-id of the diff.
Includes tree entries only if they match the configured path.
Includes tree entries only if they match one or more configured paths.
Matcher built by patterns consists of multiple path segments.
Utility functions for paths inside of a Git repository.
Includes tree entries only if they end with the configured path (suffix
match).
Abstract filter that searches text using extended regular expressions.
Checks if all objects are reachable from certain starting points doing a
walk.
Checks the reachability walking the graph from the starters towards the
target.
Singleton that collects performance logs.
Class to register a performance log record.
A combination of a person identity and time in Git.
A commit reference to a commit in the DAG.
An ordered list of
PlotCommit
subclasses.A line space within the graph.
Specialized RevWalk for visualization of a commit graph.
The
post-commit
hook implementation.Hook invoked by
ReceivePack
after all
updates are executed.PostReceiveHook
that delegates to a list
of other hooks.Hook invoked by
UploadPack
after the pack
has been uploaded.PostUploadHook
that delegates to a list of
other hooks.The
pre-commit
hook implementation.The pre-defined diff tool.
The pre-defined merge tool.
The
pre-push
hook implementation.Hook invoked by
ReceivePack
before any
updates are executed.PreReceiveHook
that delegates to a list of
other hooks.Hook invoked by
UploadPack
before during
critical phases.PreUploadHook
that delegates to a list of
other hooks.Describes the result of running an external process.
Status of a process' execution.
A progress reporting interface.
A simple spinner connected to an
OutputStream
.A handler for when the diff/merge tool manager wants to prompt the user
whether to continue
A timestamp generated by
MonotonicClock.propose()
.Hook to allow callers to be notified on Git protocol v2 requests.
ProtocolV2Hook
that delegates to a list of
other hooks.The Pull command
Encapsulates the result of a
PullCommand
The required information to verify the push.
Verification result of the nonce returned during push.
Identity in a push certificate.
Parser for signed push certificates.
Storage for recorded push certificates.
A class used to execute a
Push
command.Push section of a Git configuration file.
Git config values for
push.default
.Git config values for
push.recurseSubmodules
.Lists known refs from the remote and sends objects to the remote.
Result of push operation to the remote repository.
Utility functions related to quoted string handling.
Quoting style used by the Bourne shell.
Bourne style, but permits
~user
at the start of the string.Quoting style that obeys the rules Git applies to file names
A rough character sequence around a raw byte buffer.
Utility class for character functions on raw bytes
Handy utility functions to parse raw object contents.
Searches text using only substring search.
A Sequence supporting UNIX formatted text in byte[] format.
Equivalence function for
RawText
.Check if a commit is reachable from a collection of starting commits.
Readable random access byte channel from a file.
A class used to execute a
Rebase
command.Allows to configure the interactive rebase process steps and to modify
commit messages.
Extends
RebaseCommand.InteractiveHandler
with an enhanced callback for editing
commit messages.Describes the result of editing a commit message: the new message,
and how it should be cleaned.
The available operations
The result of a
RebaseCommand
executionThe overall status
Offers methods to read and write files formatted like the git-rebase-todo
file
Describes a single line in a file formatted like the git-rebase-todo file.
Describes rebase actions
A command being processed by
ReceivePack
.Result of the update command.
Type of operation requested.
Exception handler for processing
ReceiveCommand
.Statistics about
PackParser
.A builder for
ReceivedPackStatistics
.Implements the server side of a push connection, receiving objects.
Deprecated.
Create and configure
ReceivePack
service
instance.A three-way merger performing a content-merge if necessary across multiple
bases using recursion
This merger extends the resolve merger and does several things differently:
- allow more than one merge base, up to a maximum
- uses "Lists" instead of Arrays for chained types
- recursively merges the merge bases together to compute a usable base
Pairing of a name and the
ObjectId
it currently
has.Location where a
Ref
is stored.Support for the start of
UploadPack
and
ReceivePack
.Advertiser which frames lines in a
PacketLineOut
format.Thrown when trying to create a
Ref
with the same
name as an existing oneUtil for sorting (or comparing) Ref instances by name.
Iterator over references inside a
Reftable
.Abstraction of name to
ObjectId
mapping.Traditional file system based
RefDatabase
.Utility methods for object references
Filters the list of refs that are advertised to the client.
Describes the expected value for a ref being pushed.
Specialized variant of an ArrayList to support a
RefDatabase
.Builder to facilitate fast construction of an immutable RefList.
The reflog command
Parsed reflog entry
Parsed reflog entry
Utility for reading reflog entries
Utility for writing reflog entries using the traditional one-file-per-log
format.
Specialized Map to present a
RefDatabase
namespace.Thrown when a ref is not found in advertised refs
Thrown when a Ref can not be resolved
A RefUpdate combination for renaming a reference.
Describes a change to one or more references of a repository.
Receives
RefsChangedEvent
s.Describes how refs in one repository copy into another repository.
How strict to be about wildcards.
Abstract table of references.
BatchRefUpdate
for Reftable based RefDatabase.Merges reftables and compacts them into a single output.
Configuration used by a reftable writer when constructing the stream.
Operations on
MergedReftable
that is common to various reftable-using
subclasses of RefDatabase
.Reads a reftable formatted file.
Implement the ReflogReader interface for a reflog stored in reftable.
Writes a reftable formatted file.
Statistics about a written reftable.
Creates, updates or deletes any reference.
Status of an update request.
Writes out refs to the
Constants.INFO_REFS
and
Constants.PACKED_REFS
files.Formatter to format timestamps relative to the current time using time units
in the format defined by
git log --relative-date
.Used to add a new remote.
A remembered remote repository, including URLs and RefSpecs.
Used to obtain the list of remotes.
Represent request and status of a remote ref update.
Represent current status of a remote ref update.
Used to remove an existing remote.
Contains a message from the remote repository indicating a problem.
An abstraction of a remote "session" for executing remote commands.
A
RemoteSession
that supports passing environment variables to
commands.Used to change the URL of a remote.
The available URI types for the remote.
Remove object notes.
Used to rename branches.
An instance of this class can be used in conjunction with a
FollowFilter
.Detect and resolve object renames.
A class used to execute a repo command.
A default implementation of
RepoCommand.RemoteReader
callback.Read-only view of contents and file mode (i.e.
A callback to get ref sha1 of a repository from its uri.
The representation of a repo sub project.
The representation of a copy file configuration.
The representation of a link file configuration.
The representation of a reference file configuration.
Represents a Git repository.
Base class to support constructing a
Repository
.A factory for
BaseRepositoryBuilder
s.Cache of active
Repository
instances.Location of a Repository, using the standard java.io.File API.
Abstract hash key for
RepositoryCache
entries.Configuration parameters for JVM-wide repository cache used by JGit.
Describes a modification made to a repository.
A listener can register for event delivery.
Indicates a local repository does not exist.
Locate a Git
Repository
by name from the URL.Important state of the repository that affects what can and cannot bed
done.
Translation bundle for repo command
Indicates that a client request has not yet been read from the wire.
A class used to execute a
Reset
command.Kind of reset
A three-way merger performing a content-merge if necessary
If the merge fails (means: not stopped because of unresolved conflicts)
this enum is used to explain why it failed
Handles work tree updates on both the checkout and the index.
The result of writing the index changes.
A binary file, or a symbolic link.
A commit reference to a commit in the DAG.
An ordered list of
RevCommit
subclasses.A class used to execute a
revert
command.Selects interesting revisions during walking.
Application level mark bit for
RevObject
s.Matches only commits with some/all RevFlags already set.
Multiple application level mark bits for
RevObject
s.This signals a revision or object reference was not
properly formatted.
Base object type accessed during revision walking.
An ordered list of
RevObject
subclasses.One level of contents, either an intermediate level or a leaf level.
Sorting strategies supported by
RevWalk
and
ObjectWalk
.An annotated tag.
A reference to a tree of subtrees/files.
Walks a commit graph and produces the matching commits in order.
Indicates a checked exception was thrown inside of
RevWalk
.Utility methods for
RevWalk
.Remove files from the index and working directory (or optionally only from
the index).
Thrown when the search for reuse phase times out.
Arbitrary sequence of elements.
Equivalence function for a
Sequence
compared by
difference algorithm.Indicates a transport service may not continue execution.
Indicates that the requested service requires authentication that
the current user has not provided.
Indicates the request service is not enabled on a repository.
Exception thrown when an optional service is not available
SHA-1 interface from FIPS 180-1 / RFC 3174 with optional collision detection.
SHA1 implementations available in JGit
Thrown by
SHA1Java
if it detects a likely hash
collision.Show an object note.
A hook registered as a JVM shutdown hook managing a set of objects needing
cleanup during JVM shutdown.
Object that needs to cleanup on JVM shutdown.
Unmultiplexes the data portion of a side-band channel.
Multiplexes data and progress messages.
Utilities for signature verification.
Configuration for server-side signed push verification.
An implementation of FileInputStream that ignores any exceptions on close().
Index structure of lines/blocks in one file.
Thrown by
create()
when file is too large.Simple limited size cache based on ConcurrentHashMap purging entries in LRU
order when reaching size limit
Filter that includes commits after a configured number are skipped.
To be used in combination with a DirCacheIterator: includes only tree entries
for which 'skipWorkTree' flag is not set.
Formatter for constructing the commit message for a squashed commit.
An abstraction for a SSH config storage, like the OpenSSH ~/.ssh/config file.
A host entry from the ssh config.
Constants relating to ssh.
Creates and destroys SSH connections to a remote system.
Extra utilities to support usage of SSH.
The base class for transports that use SSH protocol.
Command class to apply a stashed commit.
Thrown from StashApplyCommand when stash apply fails
Command class to stash changes in the working directory and index in a
commit.
Command class to delete a stashed commit reference
Command class to list the stashed commits in a repository.
Simple double statistics, computed incrementally, variance and standard
deviation using Welford's online algorithm, see
https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Welford's_online_algorithm
A class telling where the working-tree, the index and the current HEAD differ
from each other.
A class used to execute a
Status
command.Stops the driver loop of walker and finish with current results.
Persistent configuration that can be stored and loaded from a location.
An object representation
PackWriter
can consider for
packing.A previously selected representation is no longer available.
Trivial merge strategy to make the resulting tree exactly match an input.
A three-way merge strategy performing a content-merge if necessary
A three-way merge strategy performing a content-merge if necessary
Merges two commits together in-memory, ignoring any working directory.
Thread to copy from an input stream to an output stream.
Various
String
related utility methods, written mostly to
avoid generation of new String objects (e.g.Miscellaneous string comparison utility methods.
A class used to execute a submodule add command.
Submodule section of a Git configuration file.
Config values for submodule.[name].fetchRecurseSubmodules.
Merges expect that conflicts will consist of Sequences, but that doesn't
really make sense for submodules.
A class used to execute a submodule deinit command.
The user tried to deinitialize a submodule that doesn't exist in the
index.
The effect of a submodule deinit command for a given path
The result of a submodule deinit command for a particular path
A class used to execute a submodule init command.
Status class containing the type, path, and commit id of the submodule.
A class used to execute a submodule status command.
Enumeration of different statuses that a submodule can be in
A class used to execute a submodule sync command.
A class used to execute a submodule update command.
Validations for the git submodule fields (name, path, uri).
Error validating a git submodule declaration
Walker that visits all submodule entries found in a tree
The values for the config parameter submodule.<name>.ignore
Wraps a
Sequence
to have a narrower range of
elements.Wrap another comparator for use with
Subsequence
.Abstract filter that searches text using only substring search.
A reference that indirectly points at another
Ref
.An exception thrown when a symlink entry is found and cannot be
handled.
Interface to read values from the system.
Mutable builder to construct an annotated tag recording a project state.
Create/update an annotated tag object or a simple unannotated tag
Specification of annotated tag behavior during fetch.
The base class for transports based on TCP sockets.
Input stream that copies data read to another output stream.
An output stream that writes all data to two streams.
A fully buffered output stream.
A temporary buffer that will never exceed its in-memory limit.
A fully buffered output stream using local disk storage for large data.
A ternary search tree with String keys and generic values.
Loader to load key-value pairs to be cached in the tree
Protocol for transport between manually-specified repositories in tests.
A simple progress reporter printing on a stream.
Wrapper around the general
ProgressMonitor
to
make it thread safe.A merge of 2 trees, using a common base ancestor tree.
A merge strategy to merge 2 trees, using a common base ancestor tree.
An alternative PrintWriter that doesn't catch exceptions.
InputStream with a configurable timeout.
OutputStream with a configurable timeout.
Exception thrown when PackParser finds an object larger than a predefined
limit
Thrown when PackParser finds an object larger than a predefined limit
Exception thrown when the server rejected a too large pack
Thrown when a pack exceeds a given size limit
Tool exception for differentiation.
Update of a locally stored tracking branch.
Matcher for simple patterns ending with an asterisk, e.g.
The standard "transfer", "fetch", "protocol", "receive", and "uploadpack"
configuration parameters.
A git configuration value for how to handle a fsck failure of a particular kind.
A git configuration variable for which versions of the Git protocol to
prefer.
Base class for all translation bundles that provides injection of translated
texts into public String fields.
Common base class for all translation bundle related exceptions.
This exception will be thrown when a translation bundle loading
fails.
This exception will be thrown when a translation string for a translation
bundle and locale is missing.
Connects two Git repositories together and copies objects between them.
Type of operation a Transport is being opened for.
Transport over the non-Git aware Amazon S3 protocol.
Marker interface for transports that supports fetching from a git bundle
(sneaker-net object transport).
Single shot fetch from a streamed Git bundle.
Base class for commands that use a
Transport
during execution.Receives a callback allowing type-specific configuration to be set
on the Transport instance after it's been created.
Exception thrown when transport operation failed
Indicates a protocol error has occurred while fetching/pushing objects.
Transport through an SSH tunnel.
Transport over HTTP and FTP protocols.
Accept-Encoding header in the HTTP request
(https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
Describes a way to connect to another Git repository.
Fields within a
URIish
that a transport uses.Transport over the non-Git aware SFTP (SSH based FTP) protocol.
Selects interesting tree entries during walking.
For testing an array of
TreeFilter
during a TreeWalk
for each entry and
returning the result as a bitmask.Mutable formatter to construct a single tree object.
Filter applying a
TreeFilter
against
changed paths in each commit.Walks one or more
AbstractTreeIterator
s in
parallel.Type of operation to retrieve git attributes for.
Something that knows how to convert plain strings from a git
Config
to typed values.An InputStream which reads from one or more InputStreams.
Indicates one or more paths in a DirCache have non-zero stages present.
Thrown when branch deletion fails due to unmerged data
Loose object loader.
Exception handler for processing an incoming pack file.
Indicates a ReceivePack failure while scanning the pack stream.
An exception thrown when a
CredentialItem
is requested from a CredentialsProvider
which is not supported by this provider.Thrown when a PackIndex uses an index version not supported by JGit.
Thrown when a Pack uses a pack version not supported by JGit.
Exception thrown when the configured gpg.format is not supported.
Implements the server side of a fetch connection, transmitting objects.
Validator corresponding to
UploadPack.RequestPolicy.ADVERTISED
.Validator corresponding to
UploadPack.RequestPolicy.ANY
.Deprecated.
Use
FirstWant
insteadValidator corresponding to
UploadPack.RequestPolicy.REACHABLE_COMMIT
.Validator corresponding to
UploadPack.RequestPolicy.REACHABLE_COMMIT_TIP
.Policy the server uses to validate client requests
Validator for client requests.
Validator corresponding to
UploadPack.RequestPolicy.TIP
.Create and configure
UploadPack
service
instance.UploadPack has already reported an error to the client.
This URI like construct used for referencing Git archives over the net, as
well as locally stored archives.
Support for URL translations via git configs
url.<base>.insteadOf
and
url.<base>.pushInsteadOf
.User agent to be reported by this JGit client and server on the network.
The standard "user" configuration parameters.
User (global) git config based on two possible locations,
~/.gitconfig
and $XDG_CONFIG_HOME/git/config
.The user-defined diff tool.
The user-defined merge tool.
Simple
CredentialsProvider
that always
uses the same information.A
VerificationResult
describes the outcome of a signature
verification.A command to verify GPG signatures on tags or commits.
Describes what kind of objects shall be handled by a
VerifySignatureCommand
.Marker interface for an object transport walking transport.
Indicates client requested an object the server does not want to serve.
Matcher built from path segments containing wildcards.
Wildmatch matcher for "double star" (
**
) pattern only.Caches slices of a
Pack
in
memory for faster read access.Configuration parameters for JVM-wide buffer cache used by JGit.
Cache statistics for
WindowCache
.Walks a working directory tree as part of a
TreeWalk
.A single entry within a working directory tree.
The result of a metadata-comparison between the current entry and a
DirCacheEntry
A
RepositoryEvent
describing changes to the
working tree.Receives
WorkingTreeModifiedEvent
s, which are
fired whenever a DirCacheCheckout
modifies
(adds/deletes/updates) files in the working tree.Options used by the
WorkingTreeIterator
.Simple work queue to run tasks in the background
An exception to be thrown when the write operation is aborted.
A given object is not of an expected object type.
Exception thrown when the state of the repository doesn't allow the execution
of a certain command.
FirstCommand
instead.