Uses of Class
org.eclipse.jgit.dircache.DirCacheEntry
-
Packages that use DirCacheEntry Package Description 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.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). -
-
Uses of DirCacheEntry in org.eclipse.jgit.dircache
Fields in org.eclipse.jgit.dircache declared as DirCacheEntry Modifier and Type Field Description protected DirCacheEntry
DirCacheIterator. currentEntry
The current file entry fromDirCacheIterator.cache
.protected DirCacheEntry[]
BaseDirCacheEditor. entries
Entry table this builder will eventually replace intoBaseDirCacheEditor.cache
.protected DirCacheEntry[]
BaseDirCacheEditor. entries
Entry table this builder will eventually replace intoBaseDirCacheEditor.cache
.Methods in org.eclipse.jgit.dircache that return DirCacheEntry Modifier and Type Method Description DirCacheEntry
DirCacheIterator. getDirCacheEntry()
Get the DirCacheEntry for the current file.DirCacheEntry[]
DirCache. getEntriesWithin(String path)
Recursively get all entries within a subtree.DirCacheEntry
DirCache. getEntry(int i)
Get a specific entry.DirCacheEntry
DirCache. getEntry(String path)
Get a specific entry.Methods in org.eclipse.jgit.dircache with parameters of type DirCacheEntry Modifier and Type Method Description void
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.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)
Deprecated.static void
DirCacheCheckout. checkoutEntry(Repository repo, DirCacheEntry entry, ObjectReader or, boolean deleteRecursive, DirCacheCheckout.CheckoutMetadata checkoutMetadata, WorkingTreeOptions options)
Updates the file in the working tree with content and mode from an entry in the index.void
DirCacheEntry. copyMetaData(DirCacheEntry src)
Copy the ObjectId and other meta fields from an existing entry.Constructors in org.eclipse.jgit.dircache with parameters of type DirCacheEntry Constructor 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. -
Uses of DirCacheEntry in org.eclipse.jgit.errors
Methods in org.eclipse.jgit.errors that return DirCacheEntry Modifier and Type Method Description DirCacheEntry
UnmergedPathException. getDirCacheEntry()
Get the first non-zero stage of the unmerged pathConstructors in org.eclipse.jgit.errors with parameters of type DirCacheEntry Constructor Description UnmergedPathException(DirCacheEntry dce)
Create a new unmerged path exception. -
Uses of DirCacheEntry in org.eclipse.jgit.junit
Methods in org.eclipse.jgit.junit that return DirCacheEntry Modifier and Type Method Description protected DirCacheEntry
RepositoryTestCase. createEntry(String path, FileMode mode)
CreateDirCacheEntry
protected DirCacheEntry
RepositoryTestCase. createEntry(String path, FileMode mode, int stage, String content)
CreateDirCacheEntry
protected DirCacheEntry
RepositoryTestCase. createEntry(String path, FileMode mode, String content)
CreateDirCacheEntry
protected DirCacheEntry
RepositoryTestCase. createGitLink(String path, AnyObjectId objectId)
CreateDirCacheEntry
DirCacheEntry
TestRepository. file(String path, RevBlob blob)
Construct a regular file mode tree entry.DirCacheEntry
TestRepository. link(String path, RevBlob blob)
Construct a symlink mode tree entry.Methods in org.eclipse.jgit.junit with parameters of type DirCacheEntry Modifier and Type Method Description RevTree
TestRepository. tree(DirCacheEntry... entries)
Construct a tree from a specific listing of file entries. -
Uses of DirCacheEntry in org.eclipse.jgit.merge
Methods in org.eclipse.jgit.merge that return DirCacheEntry Modifier and Type Method Description DirCacheEntry
ResolveMerger.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.DirCacheEntry
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 DirCacheEntry Modifier and Type Method Description Map<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.Map<String,DirCacheEntry>
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 DirCacheEntry Modifier and Type Method Description protected void
ResolveMerger. addToCheckout(String path, DirCacheEntry entry, Attributes[] attributes)
Adds aDirCacheEntry
for direct checkout and remembers itsDirCacheCheckout.CheckoutMetadata
.void
ResolveMerger.WorkTreeUpdater. addToCheckout(String path, DirCacheEntry entry, CoreConfig.EolStreamType cleanupStreamType, String cleanupSmudgeCommand, CoreConfig.EolStreamType checkoutStreamType, String checkoutSmudgeCommand)
Adds aDirCacheEntry
for direct checkout and remembers itsDirCacheCheckout.CheckoutMetadata
. -
Uses of DirCacheEntry in org.eclipse.jgit.treewalk
Methods in org.eclipse.jgit.treewalk with parameters of type DirCacheEntry Modifier and Type Method Description WorkingTreeIterator.MetadataDiff
WorkingTreeIterator. compareMetadata(DirCacheEntry entry)
Compare the metadata (mode, length, modification-timestamp) of the current entry and aDirCacheEntry
boolean
WorkingTreeIterator. isModified(DirCacheEntry entry, boolean forceContentCheck, ObjectReader reader)
Checks whether this entry differs from a given entry from theDirCache
.
-