Uses of Class
org.eclipse.jgit.dircache.DirCacheEntry
-
Packages that use DirCacheEntry 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.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.api
Methods in org.eclipse.jgit.api with parameters of type DirCacheEntry Modifier and Type Method Description private voidCheckoutCommand. checkoutPath(DirCacheEntry entry, ObjectReader reader, Checkout checkout, java.lang.String path, DirCacheCheckout.CheckoutMetadata checkoutMetadata)private voidStashApplyCommand. checkoutPath(DirCacheEntry entry, java.lang.String gitPath, ObjectReader reader, Checkout checkout, DirCacheCheckout.CheckoutMetadata checkoutMetadata) -
Uses of DirCacheEntry in org.eclipse.jgit.dircache
Fields in org.eclipse.jgit.dircache declared as DirCacheEntry Modifier and Type Field Description protected DirCacheEntryDirCacheIterator. currentEntryThe current file entry fromDirCacheIterator.cache.protected DirCacheEntry[]BaseDirCacheEditor. entriesEntry table this builder will eventually replace intoBaseDirCacheEditor.cache.private static DirCacheEntry[]DirCache. NO_ENTRIESprivate DirCacheEntry[]DirCache. sortedEntriesIndividual file index entries, sorted by path name.Fields in org.eclipse.jgit.dircache with type parameters of type DirCacheEntry Modifier and Type Field Description (package private) static java.util.Comparator<DirCacheEntry>DirCache. ENT_CMPMethods in org.eclipse.jgit.dircache that return DirCacheEntry Modifier and Type Method Description DirCacheEntryDirCacheIterator. getDirCacheEntry()Get the DirCacheEntry for the current file.DirCacheEntry[]DirCache. getEntriesWithin(java.lang.String path)Recursively get all entries within a subtree.DirCacheEntryDirCache. getEntry(int i)Get a specific entry.DirCacheEntryDirCache. getEntry(java.lang.String path)Get a specific entry.private static DirCacheEntryDirCacheBuilder. toEntry(int stage, CanonicalTreeParser i)Methods in org.eclipse.jgit.dircache with parameters of type DirCacheEntry Modifier and Type Method Description voidDirCacheBuilder. 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.private static java.lang.IllegalStateExceptionDirCacheBuilder. bad(DirCacheEntry a, java.lang.String msg)private voidDirCacheBuilder. beforeAdd(DirCacheEntry newEntry)voidCheckout. checkout(DirCacheEntry entry, DirCacheCheckout.CheckoutMetadata metadata, ObjectReader reader, java.lang.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)Updates the file in the working tree with content and mode from an entry in the index.voidCheckout. checkoutGitlink(DirCacheEntry entry, java.lang.String gitPath)Checks out the gitlink given by theDirCacheEntry.(package private) static intDirCache. cmp(byte[] aPath, int aLen, DirCacheEntry b)(package private) static intDirCache. cmp(DirCacheEntry a, DirCacheEntry b)private intDirCacheTree. computeSize(DirCacheEntry[] cache, int cIdx, int pathOffset, ObjectInserter ow)private voidDirCacheCheckout. conflict(java.lang.String path, DirCacheEntry e, AbstractTreeIterator h, AbstractTreeIterator m)A conflict is detected - add the three different stages to the indexvoidDirCacheEntry. copyMetaData(DirCacheEntry src)Copy the ObjectId and other meta fields from an existing entry.(package private) voidDirCacheEntry. copyMetaData(DirCacheEntry src, boolean keepStage)Copy the ObjectId and other meta fields from an existing entry.private intDirCacheEditor. deleteOverlappingSubtree(DirCacheEntry ent, int eIdx)protected voidBaseDirCacheEditor. fastAdd(DirCacheEntry newEntry)Append one entry into the resulting entry list.private static booleanDirCacheEditor. inDir(DirCacheEntry e, byte[] path, int pLen)private voidDirCacheCheckout. keep(java.lang.String path, DirCacheEntry e, WorkingTreeIterator f)(package private) voidDirCache. replace(DirCacheEntry[] e, int cnt)(package private) voidDirCache. toArray(int i, DirCacheEntry[] dst, int off, int cnt)(package private) voidDirCacheTree. validate(DirCacheEntry[] cache, int cCnt, int cIdx, int pathOff)Update (if necessary) this tree's entrySpan.(package private) voidDirCacheEntry. write(java.io.OutputStream os, DirCache.DirCacheVersion version, DirCacheEntry previous)(package private) ObjectIdDirCacheTree. 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 DirCacheEntry Constructor Description DeletePath(DirCacheEntry ent)Create a new deletion command for an existing entry instance.DirCacheEntry(byte[] sharedInfo, MutableInteger infoAt, java.io.InputStream in, java.security.MessageDigest md, java.time.Instant smudge, DirCache.DirCacheVersion version, DirCacheEntry previous)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
Fields in org.eclipse.jgit.errors declared as DirCacheEntry Modifier and Type Field Description private DirCacheEntryUnmergedPathException. entryMethods in org.eclipse.jgit.errors that return DirCacheEntry Modifier and Type Method Description DirCacheEntryUnmergedPathException. 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 DirCacheEntryRepositoryTestCase. createEntry(java.lang.String path, FileMode mode)CreateDirCacheEntryprotected DirCacheEntryRepositoryTestCase. createEntry(java.lang.String path, FileMode mode, int stage, java.lang.String content)CreateDirCacheEntryprotected DirCacheEntryRepositoryTestCase. createEntry(java.lang.String path, FileMode mode, java.lang.String content)CreateDirCacheEntryprotected DirCacheEntryRepositoryTestCase. createGitLink(java.lang.String path, AnyObjectId objectId)CreateDirCacheEntryDirCacheEntryTestRepository. file(java.lang.String path, RevBlob blob)Construct a regular file mode tree entry.DirCacheEntryTestRepository. link(java.lang.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 RevTreeTestRepository. tree(DirCacheEntry... entries)Construct a tree from a specific listing of file entries. -
Uses of DirCacheEntry in org.eclipse.jgit.merge
Fields in org.eclipse.jgit.merge with type parameters of type DirCacheEntry Modifier and Type Field Description protected java.util.Map<java.lang.String,DirCacheEntry>ResolveMerger. toBeCheckedOutIf 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 DirCacheEntry Modifier and Type Method Description private DirCacheEntryResolveMerger. add(byte[] path, CanonicalTreeParser p, int stage, java.time.Instant lastMod, long len)adds a new path with the specified stage to the index builderprivate DirCacheEntryResolveMerger. 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 DirCacheEntry Modifier and Type Method 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.Methods in org.eclipse.jgit.merge with parameters of type DirCacheEntry Modifier and Type Method Description protected voidResolveMerger. addToCheckout(java.lang.String path, DirCacheEntry entry, Attributes attributes)Adds aDirCacheEntryfor direct checkout and remembers itsDirCacheCheckout.CheckoutMetadata.private booleanResolveMerger. isWorktreeDirty(WorkingTreeIterator work, DirCacheEntry ourDce)private DirCacheEntryResolveMerger. 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 DirCacheEntry Modifier and Type Method Description WorkingTreeIterator.MetadataDiffWorkingTreeIterator. compareMetadata(DirCacheEntry entry)Compare the metadata (mode, length, modification-timestamp) of the current entry and aDirCacheEntryprivate booleanWorkingTreeIterator. contentCheck(DirCacheEntry entry, ObjectReader reader)Compares the entries content with the content in the filesystem.booleanWorkingTreeIterator. isModified(DirCacheEntry entry, boolean forceContentCheck, ObjectReader reader)Checks whether this entry differs from a given entry from theDirCache.private static java.lang.StringWorkingTreeIterator. readContentAsNormalizedString(DirCacheEntry entry, ObjectReader reader)
-