Package | Description |
---|---|
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.file |
File based repository storage.
|
org.eclipse.jgit.internal.storage.reftree | |
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.revwalk |
Walking revision graphs (commit history).
|
org.eclipse.jgit.submodule |
Git submodule support.
|
org.eclipse.jgit.transport |
Transport (fetch/push) for different protocols.
|
org.eclipse.jgit.treewalk |
Walking and comparing directory/file trees (of commits, file system).
|
org.eclipse.jgit.util |
Utility classes.
|
Modifier and Type | Method and Description |
---|---|
FileHeader |
DiffFormatter.toFileHeader(DiffEntry ent)
Creates a
FileHeader representing the
given DiffEntry |
Modifier and Type | Method and Description |
---|---|
static DirCache |
DirCache.lock(File indexLocation,
FS fs)
Create a new in-core index representation, lock it, and read from disk.
|
static DirCache |
DirCache.lock(File indexLocation,
FS fs,
IndexChangedListener indexChangedListener)
Create a new in-core index representation, lock it, and read from disk.
|
static DirCache |
DirCache.lock(Repository repository,
IndexChangedListener indexChangedListener)
Create a new in-core index representation, lock it, and read from disk.
|
void |
DirCacheCheckout.prescanOneTree()
Scan index and merge tree (no HEAD).
|
void |
DirCacheCheckout.preScanTwoTrees()
Scan head, index and merge tree.
|
void |
DirCache.read()
Read the index from disk, if it has changed on disk.
|
static DirCache |
DirCache.read(File indexLocation,
FS fs)
Create a new in-core index representation and read an index from disk.
|
static DirCache |
DirCache.read(Repository repository)
Create a new in-core index representation and read an index from disk.
|
void |
DirCacheBuildIterator.skip()
Advance to the next tree entry, populating this iterator with its data.
|
Modifier and Type | Method and Description |
---|---|
long |
PackReverseIndex.findNextOffset(long offset,
long maxOffset)
Search for the next offset to the specified offset in this pack (reverse)
index.
|
static PackIndex |
PackIndex.read(InputStream fd)
Read an existing pack index file from a buffered stream.
|
Modifier and Type | Method and Description |
---|---|
static RefTree |
RefTree.read(ObjectReader reader,
RevTree tree)
Load a reference tree.
|
Modifier and Type | Method and Description |
---|---|
void |
ObjectChecker.check(AnyObjectId id,
int objType,
byte[] raw)
Check an object for parsing errors.
|
void |
ObjectChecker.check(int objType,
byte[] raw)
Check an object for parsing errors.
|
void |
ObjectChecker.checkBlob(byte[] raw)
Check a blob for errors.
|
void |
ObjectChecker.checkCommit(AnyObjectId id,
byte[] raw)
Check a commit for errors.
|
void |
ObjectChecker.checkCommit(byte[] raw)
Check a commit for errors.
|
void |
ObjectChecker.checkPath(byte[] raw,
int ptr,
int end)
Check tree path entry for validity.
|
void |
ObjectChecker.checkPath(String path)
Check tree path entry for validity.
|
void |
ObjectChecker.checkPathSegment(byte[] raw,
int ptr,
int end)
Check tree path entry for validity.
|
void |
ObjectChecker.checkTag(AnyObjectId id,
byte[] raw)
Check an annotated tag for errors.
|
void |
ObjectChecker.checkTag(byte[] raw)
Check an annotated tag for errors.
|
void |
ObjectChecker.checkTree(AnyObjectId id,
byte[] raw)
Check a canonical formatted tree for errors.
|
void |
ObjectChecker.checkTree(byte[] raw)
Check a canonical formatted tree for errors.
|
static int |
Constants.decodeTypeString(AnyObjectId id,
byte[] typeString,
byte endMark,
MutableInteger offset)
Parse an encoded type string into a type constant.
|
void |
BlobObjectChecker.endBlob(AnyObjectId id)
Finalize the blob checking.
|
DirCache |
Repository.lockDirCache()
Create a new in-core index representation, lock it, and read from disk.
|
DirCache |
Repository.readDirCache()
Create a new in-core index representation and read an index from disk.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ResolveMerger.cleanUp()
Reverts the worktree after an unsuccessful merge.
|
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.
|
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
static RevTag |
RevTag.parse(byte[] raw)
Parse an annotated tag from its canonical format.
|
static RevTag |
RevTag.parse(RevWalk rw,
byte[] raw)
Parse an annotated tag from its canonical format.
|
Modifier and Type | Method and Description |
---|---|
SubmoduleWalk |
SubmoduleWalk.setTree(AbstractTreeIterator iterator)
Set the tree iterator used for finding submodule entries
|
Modifier and Type | Method and Description |
---|---|
protected void |
PackParser.verifySafeObject(AnyObjectId id,
int type,
byte[] data)
Verify the integrity of the object.
|
Modifier and Type | Method and Description |
---|---|
int |
TreeWalk.addTree(AnyObjectId id)
Add an already existing tree object for walking.
|
abstract void |
AbstractTreeIterator.back(int delta)
Move to prior entry, populating this iterator with the entry data.
|
void |
WorkingTreeIterator.back(int delta)
Move to prior entry, populating this iterator with the entry data.
|
void |
EmptyTreeIterator.back(int delta)
Move to prior entry, populating this iterator with the entry data.
|
void |
TreeWalk.enterSubtree()
Enter into the current subtree.
|
boolean |
AbstractTreeIterator.findFile(byte[] name)
Seek the iterator on a file, if present.
|
boolean |
AbstractTreeIterator.findFile(String name)
Seek the iterator on a file, if present.
|
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.
|
abstract void |
AbstractTreeIterator.next(int delta)
Move to next entry, populating this iterator with the entry data.
|
void |
WorkingTreeIterator.next(int delta)
Move to next entry, populating this iterator with the entry data.
|
void |
EmptyTreeIterator.next(int delta)
Move to next entry, populating this iterator with the entry data.
|
void |
AbstractTreeIterator.reset()
Position this iterator on the first 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.
|
void |
AbstractTreeIterator.skip()
Advance to the next tree entry, populating this iterator with its data.
|
Modifier and Type | Method and Description |
---|---|
void |
SystemReader.checkPath(byte[] path)
Check tree path entry for validity.
|
void |
SystemReader.checkPath(String path)
Check tree path entry for validity.
|
Copyright © 2019 Eclipse JGit Project. All rights reserved.