Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
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.ketch |
Distributed consensus system built on Git.
|
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.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.
|
NameRevCommand |
NameRevCommand.add(Iterable<ObjectId> ids)
Add multiple objects to search for.
|
NameRevCommand |
NameRevCommand.add(ObjectId id)
Add an object to search for.
|
LogCommand |
LogCommand.addRange(AnyObjectId since,
AnyObjectId until)
Adds the range
since..until |
LogCommand |
LogCommand.not(AnyObjectId start)
Same as
--not start , or ^start |
Modifier and Type | Method and Description |
---|---|
FileHeader |
DiffFormatter.toFileHeader(DiffEntry ent)
Creates a
FileHeader representing the
given DiffEntry |
Modifier and Type | Method and Description |
---|---|
void |
DirCacheCheckout.prescanOneTree()
Scan index and merge tree (no HEAD).
|
Constructor and Description |
---|
Proposal(RevWalk rw,
Collection<ReceiveCommand> cmds)
Create a proposal from a collection of received commands.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
DfsReader.selectObjectRepresentation(PackWriter packer,
ProgressMonitor monitor,
Iterable<ObjectToPack> objects) |
Modifier and Type | Method and Description |
---|---|
abstract long |
PackIndex.findCRC32(AnyObjectId objId)
Retrieve stored CRC32 checksum of the requested object raw-data
(including header).
|
Modifier and Type | Method and Description |
---|---|
void |
ObjectReuseAsIs.selectObjectRepresentation(PackWriter packer,
ProgressMonitor monitor,
Iterable<ObjectToPack> objects)
Select the best object representation for a packer.
|
Modifier and Type | Method and Description |
---|---|
static RefTree |
RefTree.read(ObjectReader reader,
RevTree tree)
Load a reference tree.
|
Constructor and Description |
---|
Command(RevWalk rw,
ReceiveCommand cmd)
Construct a RefTree command wrapped around a ReceiveCommand.
|
Modifier and Type | Method and Description |
---|---|
void |
TestRepository.fsck(RevObject... tips)
Run consistency checks against the object database.
|
Modifier and Type | Method and Description |
---|---|
ObjectStream |
LfsBlobLoader.openStream() |
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 |
---|---|
void |
ObjectLoader.copyTo(OutputStream out)
Copy this object to the output stream.
|
byte[] |
ObjectLoader.getBytes(int sizeLimit)
Obtain a copy of the bytes of this object.
|
byte[] |
ObjectLoader.getCachedBytes(int sizeLimit)
Obtain a reference to the (possibly cached) bytes of this object.
|
long |
ObjectReader.getObjectSize(AnyObjectId objectId,
int typeHint)
Get only the size of an object.
|
long |
ObjectReader.Filter.getObjectSize(AnyObjectId objectId,
int typeHint) |
boolean |
AsyncObjectLoaderQueue.next()
Position this queue onto the next available result.
|
boolean |
AsyncObjectSizeQueue.next()
Position this queue onto the next available result.
|
ObjectLoader |
Repository.open(AnyObjectId objectId)
Open an object from this repository.
|
ObjectLoader |
ObjectReader.open(AnyObjectId objectId)
Open an object from this database.
|
ObjectLoader |
ObjectReader.Filter.open(AnyObjectId objectId) |
ObjectLoader |
Repository.open(AnyObjectId objectId,
int typeHint)
Open an object from this repository.
|
abstract ObjectLoader |
ObjectReader.open(AnyObjectId objectId,
int typeHint)
Open an object from this database.
|
ObjectLoader |
ObjectReader.Filter.open(AnyObjectId objectId,
int typeHint) |
ObjectLoader |
ObjectDatabase.open(AnyObjectId objectId,
int typeHint)
Open an object from this database.
|
abstract ObjectStream |
ObjectLoader.openStream()
Obtain an input stream to read this object's data.
|
RevCommit |
Repository.parseCommit(AnyObjectId id)
Locate a reference to a commit and immediately parse its content.
|
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
byte[] |
NoteMap.getCachedBytes(AnyObjectId id,
int sizeLimit)
Open and return the content of an object's note.
|
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.
|
Modifier and Type | Method and Description |
---|---|
RevCommit |
PlotWalk.next()
Pop the next most recent commit.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Optional<RevCommit> |
ReachabilityChecker.areAllReachable(Collection<RevCommit> targets,
Collection<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 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 List<Ref> |
RevWalkUtils.findBranchesReachableFrom(RevCommit commit,
RevWalk revWalk,
Collection<Ref> refs)
Find the list of branches a given commit is reachable from when following
parents.
|
static List<Ref> |
RevWalkUtils.findBranchesReachableFrom(RevCommit commit,
RevWalk revWalk,
Collection<Ref> refs,
ProgressMonitor monitor)
Find the list of branches a given commit is reachable from when following
parents.
|
BitmapIndex.BitmapBuilder |
BitmapWalker.findObjects(Iterable<? extends ObjectId> start,
BitmapIndex.BitmapBuilder seen,
boolean ignoreMissing)
Return, as a bitmap, the objects reachable from the objects in start.
|
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(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.
|
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.
|
RevCommit |
RevWalk.next()
Pop the next most recent commit.
|
RevObject |
AsyncRevObjectQueue.next()
Obtain the next object.
|
RevObject |
ObjectWalk.nextObject()
Pop the next most recent object.
|
RevObject |
RevWalk.parseAny(AnyObjectId id)
Locate a reference to any object and immediately parse its headers.
|
void |
RevWalk.parseBody(RevObject obj)
Ensure the object's full body content is available.
|
RevCommit |
RevWalk.parseCommit(AnyObjectId id)
Locate a reference to a commit and immediately parse its content.
|
void |
RevWalk.parseHeaders(RevObject obj)
Ensure the object's critical headers have been parsed.
|
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.
|
RevObject |
RevWalk.peel(RevObject obj)
Peel back annotated tags until a non-tag object is found.
|
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.
|
abstract boolean |
RevFilter.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 |
SkipRevFilter.include(RevWalk walker,
RevCommit cmit)
Determine if the supplied commit should be included in results.
|
boolean |
NotRevFilter.include(RevWalk walker,
RevCommit c)
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 |
SubStringRevFilter.include(RevWalk walker,
RevCommit cmit)
Determine if the supplied commit should be included in results.
|
Modifier and Type | Method and Description |
---|---|
int |
TreeWalk.addTree(AnyObjectId id)
Add an already existing tree object for walking.
|
void |
TreeWalk.enterSubtree()
Enter into the current subtree.
|
static TreeWalk |
TreeWalk.forPath(ObjectReader reader,
String path,
AnyObjectId... trees)
Open a tree walk and filter to exactly one path.
|
static TreeWalk |
TreeWalk.forPath(Repository repo,
ObjectReader reader,
String path,
AnyObjectId... trees)
Open a tree walk and filter to exactly one path.
|
static TreeWalk |
TreeWalk.forPath(Repository db,
String path,
AnyObjectId... trees)
Open a tree walk and filter to exactly one path.
|
static TreeWalk |
TreeWalk.forPath(Repository db,
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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
int |
TreeFilterMarker.getMarks(TreeWalk walk)
Test the filters against the walk.
|
abstract boolean |
TreeFilter.include(TreeWalk walker)
Determine if the current entry is interesting to report.
|
boolean |
NotTreeFilter.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 |
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.
|
int |
TreeFilter.matchFilter(TreeWalk walker)
Determine if the current entry is a parent, a match, or no match.
|
int |
NotTreeFilter.matchFilter(TreeWalk walker)
Determine if the current entry is a parent, a match, or no match.
|
Copyright © 2019 Eclipse JGit Project. All rights reserved.