Uses of Class
org.eclipse.jgit.dircache.DirCacheEntry
Packages that use DirCacheEntry
Package
Description
High-level API commands (the porcelain of JGit).
Reading and editing the directory cache (index).
Exceptions thrown by lower-level JGit APIs.
Content and commit history merge algorithms.
Walking and comparing directory/file trees (of commits, file system).
-
Uses of DirCacheEntry in org.eclipse.jgit.api
Methods in org.eclipse.jgit.api with parameters of type DirCacheEntryModifier and TypeMethodDescriptionprivate void
CheckoutCommand.checkoutPath
(DirCacheEntry entry, ObjectReader reader, DirCacheCheckout.CheckoutMetadata checkoutMetadata) private void
StashApplyCommand.checkoutPath
(DirCacheEntry entry, ObjectReader reader, DirCacheCheckout.CheckoutMetadata checkoutMetadata) -
Uses of DirCacheEntry in org.eclipse.jgit.dircache
Fields in org.eclipse.jgit.dircache declared as DirCacheEntryModifier and TypeFieldDescriptionprotected DirCacheEntry
DirCacheIterator.currentEntry
The current file entry fromDirCacheIterator.cache
.protected DirCacheEntry[]
BaseDirCacheEditor.entries
Entry table this builder will eventually replace intoBaseDirCacheEditor.cache
.private static final DirCacheEntry[]
DirCache.NO_ENTRIES
private DirCacheEntry[]
DirCache.sortedEntries
Individual file index entries, sorted by path name.Fields in org.eclipse.jgit.dircache with type parameters of type DirCacheEntryModifier and TypeFieldDescription(package private) static final Comparator<DirCacheEntry>
DirCache.ENT_CMP
Methods in org.eclipse.jgit.dircache that return DirCacheEntryModifier and TypeMethodDescriptionDirCacheIterator.getDirCacheEntry()
Get the DirCacheEntry for the current file.DirCache.getEntriesWithin
(String path) Recursively get all entries within a subtree.DirCache.getEntry
(int i) Get a specific entry.Get a specific entry.private static DirCacheEntry
DirCacheBuilder.toEntry
(int stage, CanonicalTreeParser i) Methods in org.eclipse.jgit.dircache with parameters of type DirCacheEntryModifier and TypeMethodDescriptionvoid
DirCacheBuilder.add
(DirCacheEntry newEntry) Append one entry into the resulting entry list.void
DirCacheEditor.DeletePath.apply
(DirCacheEntry ent) void
DirCacheEditor.DeleteTree.apply
(DirCacheEntry ent) abstract void
DirCacheEditor.PathEdit.apply
(DirCacheEntry ent) Apply the update to a single cache entry matching the path.private static IllegalStateException
DirCacheBuilder.bad
(DirCacheEntry a, 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
(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
(String path, DirCacheEntry e, AbstractTreeIterator h, AbstractTreeIterator m) A conflict is detected - add the three different stages to the indexvoid
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
(String path, DirCacheEntry e, WorkingTreeIterator f) (package private) void
DirCache.replace
(DirCacheEntry[] e, int cnt) (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) void
DirCacheEntry.write
(OutputStream os, DirCache.DirCacheVersion version, DirCacheEntry previous) (package private) ObjectId
DirCacheTree.writeTree
(DirCacheEntry[] cache, int cIdx, int pathOffset, ObjectInserter ow) Write (if necessary) this tree to the object store.Constructors in org.eclipse.jgit.dircache with parameters of type DirCacheEntryModifierConstructorDescriptionDeletePath
(DirCacheEntry ent) Create a new deletion command for an existing entry instance.(package private)
DirCacheEntry
(byte[] sharedInfo, MutableInteger infoAt, InputStream in, MessageDigest md, Instant smudge, DirCache.DirCacheVersion version, DirCacheEntry previous) Duplicate DirCacheEntry with same path and copied info.PathEdit
(DirCacheEntry ent) Create a new update command for an existing entry instance. -
Uses of DirCacheEntry in org.eclipse.jgit.errors
Fields in org.eclipse.jgit.errors declared as DirCacheEntryMethods in org.eclipse.jgit.errors that return DirCacheEntryModifier and TypeMethodDescriptionUnmergedPathException.getDirCacheEntry()
Get the first non-zero stage of the unmerged pathConstructors in org.eclipse.jgit.errors with parameters of type DirCacheEntryModifierConstructorDescriptionCreate a new unmerged path exception. -
Uses of DirCacheEntry in org.eclipse.jgit.merge
Fields in org.eclipse.jgit.merge with type parameters of type DirCacheEntryModifier and TypeFieldDescriptionprotected Map<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.Methods in org.eclipse.jgit.merge that return DirCacheEntryModifier and TypeMethodDescriptionprivate DirCacheEntry
ResolveMerger.add
(byte[] path, CanonicalTreeParser p, int stage, Instant lastMod, long len) adds a new path with the specified stage to the index builderprivate DirCacheEntry
ResolveMerger.keep
(DirCacheEntry e) adds a entry to the index builder which is a copy of the specified DirCacheEntryMethods in org.eclipse.jgit.merge that return types with arguments of type DirCacheEntryModifier and TypeMethodDescriptionResolveMerger.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.Methods in org.eclipse.jgit.merge with parameters of type DirCacheEntryModifier and TypeMethodDescriptionprotected void
ResolveMerger.addToCheckout
(String path, DirCacheEntry entry, Attributes[] attributes) Adds aDirCacheEntry
for direct checkout and remembers itsDirCacheCheckout.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 -
Uses of DirCacheEntry in org.eclipse.jgit.treewalk
Methods in org.eclipse.jgit.treewalk with parameters of type DirCacheEntryModifier and TypeMethodDescriptionWorkingTreeIterator.compareMetadata
(DirCacheEntry entry) Compare the metadata (mode, length, modification-timestamp) of the current entry and aDirCacheEntry
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 theDirCache
.private static String
WorkingTreeIterator.readContentAsNormalizedString
(DirCacheEntry entry, ObjectReader reader)
DirCacheCheckout.checkoutEntry(Repository, DirCacheEntry, ObjectReader, boolean, CheckoutMetadata)
instead