Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
org.eclipse.jgit.blame |
Computing blame/annotate information of files.
|
org.eclipse.jgit.diff |
Comparing file contents by computing diffs.
|
org.eclipse.jgit.dircache |
Reading and editing the directory cache (index).
|
org.eclipse.jgit.internal.storage.dfs |
Distributed file system based repository storage.
|
org.eclipse.jgit.internal.storage.file |
File based repository storage.
|
org.eclipse.jgit.internal.storage.pack |
Reading/writing Git pack files.
|
org.eclipse.jgit.internal.storage.reftree | |
org.eclipse.jgit.junit | |
org.eclipse.jgit.lfs | |
org.eclipse.jgit.lfs.lib | |
org.eclipse.jgit.lib |
Core API for repository, config, refs, object database.
|
org.eclipse.jgit.merge |
Content and commit history merge algorithms.
|
org.eclipse.jgit.notes |
Git notes processing (for commits, etc).
|
org.eclipse.jgit.pgm | |
org.eclipse.jgit.revplot |
Building/rendering revision graphs.
|
org.eclipse.jgit.revwalk |
Walking revision graphs (commit history).
|
org.eclipse.jgit.revwalk.filter |
Filters for use in revision walking.
|
org.eclipse.jgit.treewalk |
Walking and comparing directory/file trees (of commits, file system).
|
org.eclipse.jgit.treewalk.filter |
Filters for use in tree walking.
|
Modifier and Type | Method and Description |
---|---|
LogCommand |
LogCommand.add(AnyObjectId start)
Mark a commit to start graph traversal from.
|
private LogCommand |
LogCommand.add(boolean include,
AnyObjectId start) |
LogCommand |
LogCommand.addRange(AnyObjectId since,
AnyObjectId until)
Adds the range
since..until |
private void |
CloneCommand.checkout(Repository clonedRepo,
FetchResult result) |
private RevTree |
ArchiveCommand.getTree(RevObject o) |
LogCommand |
LogCommand.not(AnyObjectId start)
Same as
--not start , or ^start |
private RevCommit |
CloneCommand.parseCommit(Repository clonedRepo,
Ref ref) |
Modifier and Type | Method and Description |
---|---|
ReverseWalk.ReverseCommit |
ReverseWalk.next()
Pop the next most recent commit.
|
Modifier and Type | Method and Description |
---|---|
private AbstractTreeIterator |
DiffFormatter.makeIteratorFromTreeOrNull(RevTree tree) |
Modifier and Type | Method and Description |
---|---|
private void |
DirCacheCheckout.addTree(TreeWalk tw,
ObjectId id) |
AbstractTreeIterator |
DirCacheBuildIterator.createSubtreeIterator(ObjectReader reader)
Create a new iterator for the current entry's subtree.
|
AbstractTreeIterator |
DirCacheIterator.createSubtreeIterator(ObjectReader reader)
Create a new iterator for the current entry's subtree.
|
private boolean |
DirCacheCheckout.doCheckout() |
void |
DirCacheCheckout.prescanOneTree()
Scan index and merge tree (no HEAD).
|
Modifier and Type | Method and Description |
---|---|
private void |
DfsPackCompactor.addObjectsToPack(PackWriter pw,
DfsReader ctx,
ProgressMonitor pm) |
private static ObjectLoader |
DfsReader.checkType(ObjectLoader ldr,
AnyObjectId id,
int typeHint) |
private void |
DfsPackCompactor.compactPacks(DfsReader ctx,
ProgressMonitor pm) |
long |
DfsReader.getObjectSize(AnyObjectId objectId,
int typeHint)
Get only the size of an object.
|
ObjectLoader |
DfsReader.open(AnyObjectId objectId,
int typeHint)
Open an object from this database.
|
Modifier and Type | Method and Description |
---|---|
long |
WindowCursor.getObjectSize(AnyObjectId objectId,
int typeHint)
Get only the size of an object.
|
ObjectLoader |
PackInserter.Reader.open(AnyObjectId objectId,
int typeHint) |
ObjectLoader |
WindowCursor.open(AnyObjectId objectId,
int typeHint)
Open an object from this database.
|
private void |
GC.removeReferenced(java.util.Map<ObjectId,java.io.File> id2File,
ObjectWalk w)
Remove all entries from a map which key is the id of an object referenced
by the given ObjectWalk
|
Modifier and Type | Method and Description |
---|---|
void |
PackWriter.addObject(RevObject object)
Include one object to the output file.
|
private byte[] |
DeltaWindow.buffer(DeltaWindowEntry ent) |
private PackWriterBitmapPreparer.CommitSelectionHelper |
PackWriterBitmapPreparer.captureOldAndNewCommits(RevWalk rw,
int expectedCommitCount,
java.util.Set<? extends ObjectId> excludeFromBitmapSelection)
Records which of the
wants can be found in the previous GC pack's
bitmap indices and which are new. |
private void |
PackWriter.findObjectsToPackUsingBitmaps(BitmapWalker bitmapWalker,
java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have) |
private DeltaIndex |
DeltaWindow.index(DeltaWindowEntry ent) |
private byte[] |
BaseSearch.readTree(AnyObjectId id) |
private void |
PackWriter.searchForDeltas(ProgressMonitor monitor) |
private void |
PackWriter.searchForDeltas(ProgressMonitor monitor,
ObjectToPack[] list,
int cnt) |
(package private) java.util.Collection<PackWriterBitmapPreparer.BitmapCommit> |
PackWriterBitmapPreparer.selectCommits(int expectedCommitCount,
java.util.Set<? extends ObjectId> excludeFromBitmapSelection)
Returns the commit objects for which bitmap indices should be built.
|
Modifier and Type | Method and Description |
---|---|
static RefTree |
RefTree.read(ObjectReader reader,
RevTree tree)
Load a reference tree.
|
private static void |
Scanner.scan(ObjectReader reader,
AnyObjectId srcId,
java.lang.String prefix,
boolean recursive,
RefList.Builder<Ref> all,
RefList.Builder<Ref> sym) |
Modifier and Type | Method and Description |
---|---|
void |
TestRepository.fsck(RevObject... tips)
Run consistency checks against the object database.
|
Modifier and Type | Method and Description |
---|---|
private static void |
LfsPrePushHook.findLfsPointers(java.util.Set<LfsPointer> toPush,
ObjectWalk walk) |
private java.util.Set<LfsPointer> |
LfsPrePushHook.findObjectsToPush() |
Modifier and Type | Method and Description |
---|---|
boolean |
LfsPointerFilter.include(TreeWalk walk)
Determine if the current entry is interesting to report.
|
Modifier and Type | Method and Description |
---|---|
private static AnyObjectId |
BlobBasedConfig.asTree(ObjectReader or,
AnyObjectId treeish) |
long |
ObjectReader.getObjectSize(AnyObjectId objectId,
int typeHint)
Get only the size of an object.
|
long |
ObjectReader.Filter.getObjectSize(AnyObjectId objectId,
int typeHint) |
boolean |
IndexDiff.ProgressReportingFilter.include(TreeWalk walker) |
abstract ObjectLoader |
ObjectReader.open(AnyObjectId objectId,
int typeHint)
Open an object from this database.
|
ObjectLoader |
ObjectReader.Filter.open(AnyObjectId objectId,
int typeHint) |
ObjectLoader |
Repository.open(AnyObjectId objectId,
int typeHint)
Open an object from this repository.
|
ObjectLoader |
ObjectDatabase.open(AnyObjectId objectId,
int typeHint)
Open an object from this database.
|
RevCommit |
Repository.parseCommit(AnyObjectId id)
Locate a reference to a commit and immediately parse its content.
|
private static byte[] |
BlobBasedConfig.read(ObjectReader or,
AnyObjectId blobId) |
private static byte[] |
BlobBasedConfig.read(Repository db,
AnyObjectId blobId) |
private static byte[] |
BlobBasedConfig.read(Repository db,
AnyObjectId treeish,
java.lang.String path) |
ObjectId |
Repository.resolve(java.lang.String revstr)
Parse a git revision string and return an object id.
|
Modifier and Type | Method and Description |
---|---|
protected RevCommit |
RecursiveMerger.getBaseCommit(RevCommit a,
RevCommit b)
Return the merge base of two commits.
|
protected RevCommit |
Merger.getBaseCommit(RevCommit a,
RevCommit b)
Return the merge base of two commits.
|
protected AbstractTreeIterator |
Merger.openTree(AnyObjectId treeId)
Open an iterator over a tree.
|
protected boolean |
ResolveMerger.processEntry(CanonicalTreeParser base,
CanonicalTreeParser ours,
CanonicalTreeParser theirs,
DirCacheBuildIterator index,
WorkingTreeIterator work,
boolean ignoreConflicts,
Attributes attributes)
Processes one path and tries to merge taking git attributes in account.
|
void |
ThreeWayMerger.setBase(AnyObjectId id)
Set the common ancestor tree.
|
Modifier and Type | Method and Description |
---|---|
private void |
NoteMap.load(ObjectId rootTree) |
static NoteMap |
NoteMap.read(ObjectReader reader,
RevCommit commit)
Load a collection of notes from a branch.
|
static NoteMap |
NoteMap.read(ObjectReader reader,
RevTree tree)
Load a collection of notes from a tree.
|
static NoteMap |
NoteMap.readTree(ObjectReader reader,
ObjectId treeId)
Load a collection of notes from a tree.
|
Constructor and Description |
---|
NoteParser(AbbreviatedObjectId prefix,
ObjectReader r,
ObjectId t) |
Modifier and Type | Method and Description |
---|---|
private void |
Show.show(RevTree obj) |
Modifier and Type | Method and Description |
---|---|
RevCommit |
PlotWalk.next()
Pop the next most recent commit.
|
Modifier and Type | Method and Description |
---|---|
private RevCommit |
MergeBaseGenerator._next() |
void |
RevCommitList.applyFlag(RevFilter matching,
RevFlag flag)
Apply a flag to all commits matching the specified filter.
|
void |
RevCommitList.applyFlag(RevFilter matching,
RevFlag flag,
int rangeBegin,
int rangeEnd)
Apply a flag to all commits matching the specified filter.
|
default java.util.Optional<RevCommit> |
ReachabilityChecker.areAllReachable(java.util.Collection<RevCommit> targets,
java.util.Collection<RevCommit> starters)
Deprecated.
|
java.util.Optional<RevCommit> |
BitmappedReachabilityChecker.areAllReachable(java.util.Collection<RevCommit> targets,
java.util.stream.Stream<RevCommit> starters)
Check all targets are reachable from the starters.
|
java.util.Optional<RevCommit> |
PedestrianReachabilityChecker.areAllReachable(java.util.Collection<RevCommit> targets,
java.util.stream.Stream<RevCommit> starters) |
java.util.Optional<RevCommit> |
ReachabilityChecker.areAllReachable(java.util.Collection<RevCommit> targets,
java.util.stream.Stream<RevCommit> starters)
Check if all targets are reachable from the
starter commits. |
void |
ObjectWalk.checkConnectivity()
Verify all interesting objects are available, and reachable.
|
static int |
RevWalkUtils.count(RevWalk walk,
RevCommit start,
RevCommit end)
Count the number of commits that are reachable from
start
until a commit that is reachable from end is encountered. |
void |
RevCommitList.fillTo(int highMark)
Ensure this list contains at least a specified number of commits.
|
void |
RevCommitList.fillTo(RevCommit commitToLoad,
int highMark)
Ensures all commits until the given commit are loaded.
|
static java.util.List<RevCommit> |
RevWalkUtils.find(RevWalk walk,
RevCommit start,
RevCommit end)
Find commits that are reachable from
start until a commit
that is reachable from end is encountered. |
static java.util.List<Ref> |
RevWalkUtils.findBranchesReachableFrom(RevCommit commit,
RevWalk revWalk,
java.util.Collection<Ref> refs)
Find the list of branches a given commit is reachable from when following
parents.
|
static java.util.List<Ref> |
RevWalkUtils.findBranchesReachableFrom(RevCommit commit,
RevWalk revWalk,
java.util.Collection<Ref> refs,
ProgressMonitor monitor)
Find the list of branches a given commit is reachable from when following
parents.
|
BitmapIndex.BitmapBuilder |
BitmapWalker.findObjects(java.lang.Iterable<? extends ObjectId> start,
BitmapIndex.BitmapBuilder seen,
boolean ignoreMissing)
Return, as a bitmap, the objects reachable from the objects in start.
|
private BitmapIndex.BitmapBuilder |
BitmapWalker.findObjectsWalk(java.lang.Iterable<? extends ObjectId> start,
BitmapIndex.BitmapBuilder seen,
boolean ignoreMissingStart) |
(package private) byte[] |
RevWalk.getCachedBytes(RevObject obj) |
boolean |
BitmapWalker.BitmapObjectFilter.include(ObjectWalk walker,
AnyObjectId objid) |
boolean |
TreeRevFilter.include(RevWalk walker,
RevCommit c)
Determine if the supplied commit should be included in results.
|
boolean |
FollowFilter.include(TreeWalk walker)
Determine if the current entry is interesting to report.
|
boolean |
RevWalk.isMergedInto(RevCommit base,
RevCommit tip)
Determine if a commit is reachable from another commit.
|
void |
DepthWalk.RevWalk.markRoot(RevCommit c)
Mark a root commit (i.e., one whose depth should be considered 0.)
|
void |
DepthWalk.ObjectWalk.markRoot(RevObject o)
Mark a root commit (i.e., one whose depth should be considered 0.)
|
void |
RevWalk.markStart(java.util.Collection<RevCommit> list)
Mark commits to start graph traversal from.
|
void |
RevWalk.markStart(RevCommit c)
Mark a commit to start graph traversal from.
|
void |
ObjectWalk.markStart(RevObject o)
Mark an object or commit to start graph traversal from.
|
private void |
ObjectWalk.markTreeUninteresting(RevTree tree) |
void |
RevWalk.markUninteresting(RevCommit c)
Mark a commit to not produce in the output.
|
void |
ObjectWalk.markUninteresting(RevObject o)
Mark an object to not produce in the output.
|
void |
DepthWalk.ObjectWalk.markUnshallow(RevObject c)
Mark an element which used to be shallow in the client, but which
should now be considered a full commit.
|
RevCommit |
ObjectWalk.next()
Pop the next most recent commit.
|
(package private) RevCommit |
PendingGenerator.next() |
(package private) RevCommit |
RewriteGenerator.next() |
RevCommit |
RevWalk.next()
Pop the next most recent commit.
|
(package private) RevCommit |
TopoSortGenerator.next() |
(package private) RevCommit |
DepthGenerator.next() |
(package private) RevCommit |
FixUninterestingGenerator.next() |
(package private) RevCommit |
MergeBaseGenerator.next() |
(package private) RevCommit |
BoundaryGenerator.next() |
(package private) RevCommit |
BoundaryGenerator.InitialGenerator.next() |
(package private) RevCommit |
StartGenerator.next() |
(package private) abstract RevCommit |
Generator.next()
Return the next commit to the application, or the next generator.
|
(package private) RevCommit |
DelayRevQueue.next() |
RevObject |
ObjectWalk.nextObject()
Pop the next most recent object.
|
(package private) void |
RevBlob.parseBody(RevWalk walk) |
(package private) void |
RevCommit.parseBody(RevWalk walk) |
(package private) void |
RevTag.parseBody(RevWalk walk) |
(package private) void |
RevTree.parseBody(RevWalk walk) |
(package private) abstract void |
RevObject.parseBody(RevWalk walk) |
RevCommit |
RevWalk.parseCommit(AnyObjectId id)
Locate a reference to a commit and immediately parse its content.
|
(package private) void |
RevBlob.parseHeaders(RevWalk walk) |
(package private) void |
RevCommit.parseHeaders(RevWalk walk) |
(package private) void |
RevTag.parseHeaders(RevWalk walk) |
(package private) void |
RevTree.parseHeaders(RevWalk walk) |
(package private) abstract void |
RevObject.parseHeaders(RevWalk walk) |
RevTag |
RevWalk.parseTag(AnyObjectId id)
Locate a reference to an annotated tag and immediately parse its content.
|
RevTree |
RevWalk.parseTree(AnyObjectId id)
Locate a reference to a tree.
|
private RevObject |
ObjectWalk.pushTree(RevObject obj) |
private void |
TreeRevFilter.updateFollowFilter(ObjectId[] trees,
DiffConfig cfg) |
Constructor and Description |
---|
BlockRevQueue(Generator s) |
DateRevQueue(Generator s) |
DepthGenerator(DepthWalk w,
Generator s) |
FIFORevQueue(Generator s) |
LIFORevQueue(Generator s) |
TopoSortGenerator(Generator s)
Create a new sorter and completely spin the generator.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
ObjectFilter.include(ObjectWalk walker,
AnyObjectId objid)
Determine if the named object should be included in the walk.
|
boolean |
SkipRevFilter.include(RevWalk walker,
RevCommit cmit)
Determine if the supplied commit should be included in results.
|
abstract boolean |
RevFilter.include(RevWalk walker,
RevCommit cmit)
Determine if the supplied commit should be included in results.
|
boolean |
MaxCountRevFilter.include(RevWalk walker,
RevCommit cmit)
Determine if the supplied commit should be included in results.
|
boolean |
PatternMatchRevFilter.include(RevWalk walker,
RevCommit cmit)
Determine if the supplied commit should be included in results.
|
boolean |
CommitTimeRevFilter.Before.include(RevWalk walker,
RevCommit cmit) |
boolean |
CommitTimeRevFilter.After.include(RevWalk walker,
RevCommit cmit) |
boolean |
CommitTimeRevFilter.Between.include(RevWalk walker,
RevCommit cmit) |
boolean |
NotRevFilter.include(RevWalk walker,
RevCommit c)
Determine if the supplied commit should be included in results.
|
boolean |
SubStringRevFilter.include(RevWalk walker,
RevCommit cmit)
Determine if the supplied commit should be included in results.
|
boolean |
RevFlagFilter.HasAll.include(RevWalk walker,
RevCommit c) |
boolean |
RevFlagFilter.HasAny.include(RevWalk walker,
RevCommit c) |
boolean |
OrRevFilter.Binary.include(RevWalk walker,
RevCommit c) |
boolean |
OrRevFilter.List.include(RevWalk walker,
RevCommit c) |
boolean |
AndRevFilter.Binary.include(RevWalk walker,
RevCommit c) |
boolean |
AndRevFilter.List.include(RevWalk walker,
RevCommit c) |
Modifier and Type | Method and Description |
---|---|
int |
TreeWalk.addTree(AnyObjectId id)
Add an already existing tree object for walking.
|
CanonicalTreeParser |
CanonicalTreeParser.createSubtreeIterator(ObjectReader reader)
Create a new iterator for the current entry's subtree.
|
AbstractTreeIterator |
FileTreeIterator.createSubtreeIterator(ObjectReader reader)
Create a new iterator for the current entry's subtree.
|
abstract AbstractTreeIterator |
AbstractTreeIterator.createSubtreeIterator(ObjectReader reader)
Create a new iterator for the current entry's subtree.
|
AbstractTreeIterator |
EmptyTreeIterator.createSubtreeIterator(ObjectReader reader)
Create a new iterator for the current entry's subtree.
|
CanonicalTreeParser |
CanonicalTreeParser.createSubtreeIterator(ObjectReader reader,
MutableObjectId idBuffer)
Create a new iterator for the current entry's subtree.
|
AbstractTreeIterator |
AbstractTreeIterator.createSubtreeIterator(ObjectReader reader,
MutableObjectId idBuffer)
Create a new iterator for the current entry's subtree.
|
void |
TreeWalk.enterSubtree()
Enter into the current subtree.
|
static TreeWalk |
TreeWalk.forPath(ObjectReader reader,
java.lang.String path,
AnyObjectId... trees)
Open a tree walk and filter to exactly one path.
|
static TreeWalk |
TreeWalk.forPath(Repository repo,
ObjectReader reader,
java.lang.String path,
AnyObjectId... trees)
Open a tree walk and filter to exactly one path.
|
static TreeWalk |
TreeWalk.forPath(Repository db,
java.lang.String path,
AnyObjectId... trees)
Open a tree walk and filter to exactly one path.
|
static TreeWalk |
TreeWalk.forPath(Repository db,
java.lang.String path,
RevTree tree)
Open a tree walk and filter to exactly one path.
|
boolean |
TreeWalk.next()
Advance this walker to the next relevant entry.
|
private CanonicalTreeParser |
TreeWalk.parserFor(AnyObjectId id) |
void |
TreeWalk.reset(AnyObjectId... ids)
Reset this walker to run over a set of existing trees.
|
void |
TreeWalk.reset(AnyObjectId id)
Reset this walker to run over a single existing tree.
|
void |
CanonicalTreeParser.reset(ObjectReader reader,
AnyObjectId id)
Reset this parser to walk through the given tree.
|
CanonicalTreeParser |
CanonicalTreeParser.resetRoot(ObjectReader reader,
AnyObjectId id)
Reset this parser to walk through the given tree.
|
Constructor and Description |
---|
CanonicalTreeParser(byte[] prefix,
ObjectReader reader,
AnyObjectId treeId)
Create a new parser for a tree appearing in a subset of a repository.
|
Modifier and Type | Method and Description |
---|---|
int |
TreeFilterMarker.getMarks(TreeWalk walk)
Test the filters against the walk.
|
boolean |
NotIgnoredFilter.include(TreeWalk tw)
Determine if the current entry is interesting to report.
|
boolean |
IndexDiffFilter.include(TreeWalk tw)
Determine if the current entry is interesting to report.
|
abstract boolean |
TreeFilter.include(TreeWalk walker)
Determine if the current entry is interesting to report.
|
boolean |
PathSuffixFilter.include(TreeWalk walker)
Determine if the current entry is interesting to report.
|
boolean |
OrTreeFilter.Binary.include(TreeWalk walker) |
boolean |
OrTreeFilter.List.include(TreeWalk walker) |
boolean |
AndTreeFilter.Binary.include(TreeWalk walker) |
boolean |
AndTreeFilter.List.include(TreeWalk walker) |
boolean |
NotTreeFilter.include(TreeWalk walker)
Determine if the current entry is interesting to report.
|
int |
TreeFilter.matchFilter(TreeWalk walker)
Determine if the current entry is a parent, a match, or no match.
|
int |
OrTreeFilter.Binary.matchFilter(TreeWalk walker) |
int |
OrTreeFilter.List.matchFilter(TreeWalk walker) |
int |
AndTreeFilter.Binary.matchFilter(TreeWalk walker) |
int |
AndTreeFilter.List.matchFilter(TreeWalk walker) |
int |
NotTreeFilter.matchFilter(TreeWalk walker)
Determine if the current entry is a parent, a match, or no match.
|