Uses of Class
org.eclipse.jgit.dircache.DirCacheEntry
Packages that use DirCacheEntry
Package
Description
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.dircache
Fields in org.eclipse.jgit.dircache declared as DirCacheEntryModifier and TypeFieldDescriptionprotected DirCacheEntryDirCacheIterator.currentEntryThe current file entry fromDirCacheIterator.cache.protected DirCacheEntry[]BaseDirCacheEditor.entriesprotected DirCacheEntry[]BaseDirCacheEditor.entriesMethods 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.Methods in org.eclipse.jgit.dircache with parameters of type DirCacheEntryModifier and TypeMethodDescriptionvoidDirCacheBuilder.add(DirCacheEntry newEntry) Append one entry into the resulting entry list.voidDirCacheEditor.DeletePath.apply(DirCacheEntry ent) voidDirCacheEditor.DeleteTree.apply(DirCacheEntry ent) abstract voidDirCacheEditor.PathEdit.apply(DirCacheEntry ent) Apply the update to a single cache entry matching the path.voidCheckout.checkout(DirCacheEntry entry, DirCacheCheckout.CheckoutMetadata metadata, ObjectReader reader, String gitPath) Checks out the file given by theDirCacheEntry.static voidDirCacheCheckout.checkoutEntry(Repository repo, DirCacheEntry entry, ObjectReader or) Deprecated.static voidDirCacheCheckout.checkoutEntry(Repository repo, DirCacheEntry entry, ObjectReader or, boolean deleteRecursive, DirCacheCheckout.CheckoutMetadata checkoutMetadata) Deprecated.static voidDirCacheCheckout.checkoutEntry(Repository repo, DirCacheEntry entry, ObjectReader or, boolean deleteRecursive, DirCacheCheckout.CheckoutMetadata checkoutMetadata, WorkingTreeOptions options) Deprecated.since 6.6.1; useCheckoutinsteadvoidCheckout.checkoutGitlink(DirCacheEntry entry, String gitPath) Checks out the gitlink given by theDirCacheEntry.voidDirCacheEntry.copyMetaData(DirCacheEntry src) Copy the ObjectId and other meta fields from an existing entry.Constructors in org.eclipse.jgit.dircache with parameters of type DirCacheEntryModifierConstructorDescriptionDeletePath(DirCacheEntry ent) Create a new deletion command for an existing entry instance.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
Methods 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
Methods in org.eclipse.jgit.merge that return DirCacheEntryModifier and TypeMethodDescriptionResolveMerger.WorkTreeUpdater.addExistingToIndex(ObjectId objectId, byte[] path, FileMode fileMode, int entryStage, Instant lastModified, int len) Adds a path with the specified stage to the index builder.ResolveMerger.WorkTreeUpdater.insertToIndex(InputStream input, byte[] path, FileMode fileMode, int entryStage, Instant lastModified, int len, Attribute lfsAttribute) Creates a path with the given content, and adds it to the specified stage to the index builder.Methods 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.ResolveMerger.WorkTreeUpdater.getToBeCheckedOut()Gets a map which maps the paths of files which have to be checked out because the operation created new fully-merged content for this file into the index.Methods in org.eclipse.jgit.merge with parameters of type DirCacheEntryModifier and TypeMethodDescriptionprotected voidResolveMerger.addToCheckout(String path, DirCacheEntry entry, Attributes[] attributes) Adds aDirCacheEntryfor direct checkout and remembers itsDirCacheCheckout.CheckoutMetadata.voidResolveMerger.WorkTreeUpdater.addToCheckout(String path, DirCacheEntry entry, CoreConfig.EolStreamType cleanupStreamType, String cleanupSmudgeCommand, CoreConfig.EolStreamType checkoutStreamType, String checkoutSmudgeCommand) Adds aDirCacheEntryfor direct checkout and remembers itsDirCacheCheckout.CheckoutMetadata. -
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 aDirCacheEntrybooleanWorkingTreeIterator.isModified(DirCacheEntry entry, boolean forceContentCheck, ObjectReader reader) Checks whether this entry differs from a given entry from theDirCache.
DirCacheCheckout.checkoutEntry(Repository, DirCacheEntry, ObjectReader, boolean, CheckoutMetadata, WorkingTreeOptions)instead