Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
org.eclipse.jgit.dircache |
Reading and editing the directory cache (index).
|
org.eclipse.jgit.errors |
Exceptions thrown by lower-level JGit APIs.
|
org.eclipse.jgit.internal.storage.reftree | |
org.eclipse.jgit.junit | |
org.eclipse.jgit.merge |
Content and commit history merge algorithms.
|
org.eclipse.jgit.treewalk |
Walking and comparing directory/file trees (of commits, file system).
|
Modifier and Type | Method and Description |
---|---|
private void |
StashApplyCommand.checkoutPath(DirCacheEntry entry,
ObjectReader reader,
DirCacheCheckout.CheckoutMetadata checkoutMetadata) |
private void |
CheckoutCommand.checkoutPath(DirCacheEntry entry,
ObjectReader reader,
DirCacheCheckout.CheckoutMetadata checkoutMetadata) |
Modifier and Type | Field and Description |
---|---|
protected DirCacheEntry |
DirCacheIterator.currentEntry
The current file entry from
DirCacheIterator.cache . |
protected DirCacheEntry[] |
BaseDirCacheEditor.entries
Entry table this builder will eventually replace into
BaseDirCacheEditor.cache . |
private static DirCacheEntry[] |
DirCache.NO_ENTRIES |
private DirCacheEntry[] |
DirCache.sortedEntries
Individual file index entries, sorted by path name.
|
Modifier and Type | Field and Description |
---|---|
(package private) static java.util.Comparator<DirCacheEntry> |
DirCache.ENT_CMP |
Modifier and Type | Method and Description |
---|---|
DirCacheEntry |
DirCacheIterator.getDirCacheEntry()
Get the DirCacheEntry for the current file.
|
DirCacheEntry[] |
DirCache.getEntriesWithin(java.lang.String path)
Recursively get all entries within a subtree.
|
DirCacheEntry |
DirCache.getEntry(int i)
Get a specific entry.
|
DirCacheEntry |
DirCache.getEntry(java.lang.String path)
Get a specific entry.
|
private static DirCacheEntry |
DirCacheBuilder.toEntry(int stage,
CanonicalTreeParser i) |
Modifier and Type | Method and Description |
---|---|
void |
DirCacheBuilder.add(DirCacheEntry newEntry)
Append one entry into the resulting entry list.
|
abstract void |
DirCacheEditor.PathEdit.apply(DirCacheEntry ent)
Apply the update to a single cache entry matching the path.
|
void |
DirCacheEditor.DeletePath.apply(DirCacheEntry ent) |
void |
DirCacheEditor.DeleteTree.apply(DirCacheEntry ent) |
private static java.lang.IllegalStateException |
DirCacheBuilder.bad(DirCacheEntry a,
java.lang.String msg) |
private void |
DirCacheBuilder.beforeAdd(DirCacheEntry newEntry) |
static void |
DirCacheCheckout.checkoutEntry(Repository repo,
DirCacheEntry entry,
ObjectReader or)
Deprecated.
|
static void |
DirCacheCheckout.checkoutEntry(Repository repo,
DirCacheEntry entry,
ObjectReader or,
boolean deleteRecursive,
DirCacheCheckout.CheckoutMetadata checkoutMetadata)
Updates the file in the working tree with content and mode from an entry
in the index.
|
private void |
DirCacheCheckout.checkoutGitlink(java.lang.String path,
DirCacheEntry entry) |
(package private) static int |
DirCache.cmp(byte[] aPath,
int aLen,
DirCacheEntry b) |
(package private) static int |
DirCache.cmp(DirCacheEntry a,
DirCacheEntry b) |
private int |
DirCacheTree.computeSize(DirCacheEntry[] cache,
int cIdx,
int pathOffset,
ObjectInserter ow) |
private void |
DirCacheCheckout.conflict(java.lang.String path,
DirCacheEntry e,
AbstractTreeIterator h,
AbstractTreeIterator m)
A conflict is detected - add the three different stages to the index
|
void |
DirCacheEntry.copyMetaData(DirCacheEntry src)
Copy the ObjectId and other meta fields from an existing entry.
|
(package private) void |
DirCacheEntry.copyMetaData(DirCacheEntry src,
boolean keepStage)
Copy the ObjectId and other meta fields from an existing entry.
|
private int |
DirCacheEditor.deleteOverlappingSubtree(DirCacheEntry ent,
int eIdx) |
protected void |
BaseDirCacheEditor.fastAdd(DirCacheEntry newEntry)
Append one entry into the resulting entry list.
|
private static boolean |
DirCacheEditor.inDir(DirCacheEntry e,
byte[] path,
int pLen) |
private void |
DirCacheCheckout.keep(DirCacheEntry e,
WorkingTreeIterator f) |
(package private) void |
DirCache.replace(DirCacheEntry[] e,
int cnt) |
private static void |
DirCacheCheckout.runExternalFilterCommand(Repository repo,
DirCacheEntry entry,
DirCacheCheckout.CheckoutMetadata checkoutMetadata,
ObjectLoader ol,
FS fs,
java.io.OutputStream channel) |
(package private) void |
DirCache.toArray(int i,
DirCacheEntry[] dst,
int off,
int cnt) |
(package private) void |
DirCacheTree.validate(DirCacheEntry[] cache,
int cCnt,
int cIdx,
int pathOff)
Update (if necessary) this tree's entrySpan.
|
(package private) ObjectId |
DirCacheTree.writeTree(DirCacheEntry[] cache,
int cIdx,
int pathOffset,
ObjectInserter ow)
Write (if necessary) this tree to the object store.
|
Constructor and Description |
---|
DeletePath(DirCacheEntry ent)
Create a new deletion command for an existing entry instance.
|
DirCacheEntry(DirCacheEntry src)
Duplicate DirCacheEntry with same path and copied info.
|
PathEdit(DirCacheEntry ent)
Create a new update command for an existing entry instance.
|
Modifier and Type | Field and Description |
---|---|
private DirCacheEntry |
UnmergedPathException.entry |
Modifier and Type | Method and Description |
---|---|
DirCacheEntry |
UnmergedPathException.getDirCacheEntry()
Get the first non-zero stage of the unmerged path
|
Constructor and Description |
---|
UnmergedPathException(DirCacheEntry dce)
Create a new unmerged path exception.
|
Modifier and Type | Method and Description |
---|---|
private static boolean |
Command.check(DirCacheEntry cur,
Ref exp) |
(package private) boolean |
Command.checkRef(DirCacheEntry entry)
Check the entry is consistent with either the old or the new ref.
|
private static void |
RefTree.checkRef(DirCacheEntry ent,
Command cmd) |
private Ref |
RefTree.toRef(ObjectReader reader,
DirCacheEntry e,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected DirCacheEntry |
RepositoryTestCase.createEntry(java.lang.String path,
FileMode mode)
Create
DirCacheEntry |
protected DirCacheEntry |
RepositoryTestCase.createEntry(java.lang.String path,
FileMode mode,
int stage,
java.lang.String content)
Create
DirCacheEntry |
protected DirCacheEntry |
RepositoryTestCase.createEntry(java.lang.String path,
FileMode mode,
java.lang.String content)
Create
DirCacheEntry |
DirCacheEntry |
TestRepository.file(java.lang.String path,
RevBlob blob)
Construct a regular file mode tree entry.
|
Modifier and Type | Method and Description |
---|---|
RevTree |
TestRepository.tree(DirCacheEntry... entries)
Construct a tree from a specific listing of file entries.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,DirCacheEntry> |
ResolveMerger.toBeCheckedOut
If the merger has nothing to do for a file but check it out at the end of
the operation, it can be added here.
|
Modifier and Type | Method and Description |
---|---|
private DirCacheEntry |
ResolveMerger.add(byte[] path,
CanonicalTreeParser p,
int stage,
long lastMod,
long len)
adds a new path with the specified stage to the index builder
|
private DirCacheEntry |
ResolveMerger.keep(DirCacheEntry e)
adds a entry to the index builder which is a copy of the specified
DirCacheEntry
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,DirCacheEntry> |
ResolveMerger.getToBeCheckedOut()
Get a map which maps the paths of files which have to be checked out
because the merge created new fully-merged content for this file into the
index.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ResolveMerger.addToCheckout(java.lang.String path,
DirCacheEntry entry,
Attributes attributes)
Adds a
DirCacheEntry for direct checkout and remembers its
DirCacheCheckout.CheckoutMetadata . |
private boolean |
ResolveMerger.isWorktreeDirty(WorkingTreeIterator work,
DirCacheEntry ourDce) |
private DirCacheEntry |
ResolveMerger.keep(DirCacheEntry e)
adds a entry to the index builder which is a copy of the specified
DirCacheEntry
|
Modifier and Type | Method and Description |
---|---|
WorkingTreeIterator.MetadataDiff |
WorkingTreeIterator.compareMetadata(DirCacheEntry entry)
Compare the metadata (mode, length, modification-timestamp) of the
current entry and a
DirCacheEntry |
private boolean |
WorkingTreeIterator.contentCheck(DirCacheEntry entry,
ObjectReader reader)
Compares the entries content with the content in the filesystem.
|
boolean |
WorkingTreeIterator.isModified(DirCacheEntry entry,
boolean forceContentCheck,
ObjectReader reader)
Checks whether this entry differs from a given entry from the
DirCache . |
private static java.lang.String |
WorkingTreeIterator.readContentAsNormalizedString(DirCacheEntry entry,
ObjectReader reader) |