Uses of Interface
org.eclipse.jgit.lib.Ref
-
Packages that use Ref Package Description org.eclipse.jgit.api High-level API commands (the porcelain of JGit).org.eclipse.jgit.api.errors Exceptions thrown by API commands.org.eclipse.jgit.awtui org.eclipse.jgit.http.test org.eclipse.jgit.internal.storage.dfs Distributed file system based repository storage.org.eclipse.jgit.internal.storage.file File based repository storage.org.eclipse.jgit.internal.storage.reftable org.eclipse.jgit.lib Core API for repository, config, refs, object database.org.eclipse.jgit.merge Content and commit history merge algorithms.org.eclipse.jgit.pgm org.eclipse.jgit.pgm.debug org.eclipse.jgit.revplot Building/rendering revision graphs.org.eclipse.jgit.revwalk Walking revision graphs (commit history).org.eclipse.jgit.transport Transport (fetch/push) for different protocols.org.eclipse.jgit.util Utility classes. -
-
Uses of Ref in org.eclipse.jgit.api
Fields in org.eclipse.jgit.api with type parameters of type Ref Modifier and Type Field Description private java.util.List<Ref>
CherryPickResult. cherryPickedRefs
private java.util.List<Ref>
CherryPickCommand. commits
private java.util.List<Ref>
MergeCommand. commits
private java.util.List<Ref>
RevertCommand. commits
private java.util.List<Ref>
NameRevCommand. refs
private java.util.List<Ref>
RevertCommand. revertedRefs
private java.util.Comparator<Ref>
DescribeCommand. TAG_TIE_BREAKER
Methods in org.eclipse.jgit.api that return Ref Modifier and Type Method Description Ref
CheckoutCommand. call()
Ref
CreateBranchCommand. call()
Ref
RenameBranchCommand. call()
Ref
ResetCommand. call()
Ref
TagCommand. call()
private Ref
CloneCommand. findBranchToCheckout(FetchResult result)
private Ref
RebaseCommand. getHead()
private Ref
StashCreateCommand. getHead()
private Ref
StashDropCommand. getRef()
private Ref
TagCommand. updateTagRef(ObjectId tagId, RevWalk revWalk, java.lang.String tagName, java.lang.String newTagToString)
Methods in org.eclipse.jgit.api that return types with arguments of type Ref Modifier and Type Method Description java.util.List<Ref>
ListBranchCommand. call()
java.util.List<Ref>
ListTagCommand. call()
java.util.Collection<Ref>
LsRemoteCommand. call()
java.util.Map<java.lang.String,Ref>
LsRemoteCommand. callAsMap()
Same asLsRemoteCommand.call()
, but return Map instead of Collection.private java.util.Map<java.lang.String,Ref>
LsRemoteCommand. execute()
private java.util.Collection<Ref>
ListBranchCommand. filterRefs(java.util.Collection<Ref> refs)
private java.util.Optional<Ref>
DescribeCommand. getBestMatch(java.util.List<Ref> tags)
java.util.List<Ref>
CherryPickResult. getCherryPickedRefs()
Get the cherry-pickedRef
sjava.util.List<Ref>
RevertCommand. getRevertedRefs()
Get the list of successfully revertedRef
's.Methods in org.eclipse.jgit.api with parameters of type Ref Modifier and Type Method Description PushCommand
PushCommand. add(Ref ref)
Add a reference to push.private void
CloneCommand. addMergeConfig(Repository clonedRepo, Ref head)
NameRevCommand
NameRevCommand. addRef(Ref ref)
Add a ref to the set that all results must match.private void
NameRevCommand. addRef(Ref ref, java.util.Map<ObjectId,java.lang.String> nonCommits, FIFORevQueue pending)
private java.lang.String
CherryPickCommand. calculateOurName(Ref headRef)
private java.lang.String
RevertCommand. calculateOurName(Ref headRef)
private RefUpdate
StashDropCommand. createRefUpdate(Ref stashRef)
private void
StashDropCommand. deleteRef(Ref stashRef)
private boolean
DescribeCommand. filterLightweightTags(Ref ref)
Whether we use lightweight tags or not for describe Candidatesprivate static java.lang.String
RebaseCommand. getHeadName(Ref head)
private ObjectId
DescribeCommand. getObjectIdFromRef(Ref r)
private java.lang.String
CheckoutCommand. getShortBranchName(Ref headRef)
CherryPickCommand
CherryPickCommand. include(Ref commit)
Include a reference to a commitMergeCommand
MergeCommand. include(Ref aCommit)
Reference to a commit to be merged with the current headRevertCommand
RevertCommand. include(Ref commit)
Include aRef
to a commit to be revertedprivate java.lang.String
DescribeCommand. longDescription(Ref tag, int depth, ObjectId tip)
private RevCommit
CloneCommand. parseCommit(Repository clonedRepo, Ref ref)
private void
StashDropCommand. updateRef(Ref stashRef, ObjectId newId)
Method parameters in org.eclipse.jgit.api with type arguments of type Ref Modifier and Type Method Description private java.util.Collection<Ref>
ListBranchCommand. filterRefs(java.util.Collection<Ref> refs)
private java.util.Optional<Ref>
DescribeCommand. getBestMatch(java.util.List<Ref> tags)
Constructor parameters in org.eclipse.jgit.api with type arguments of type Ref Constructor Description CherryPickResult(RevCommit newHead, java.util.List<Ref> cherryPickedRefs)
Constructor for CherryPickResult -
Uses of Ref in org.eclipse.jgit.api.errors
Fields in org.eclipse.jgit.api.errors declared as Ref Modifier and Type Field Description private Ref
ConcurrentRefUpdateException. ref
Methods in org.eclipse.jgit.api.errors that return Ref Modifier and Type Method Description Ref
ConcurrentRefUpdateException. getRef()
GetRef
Constructors in org.eclipse.jgit.api.errors with parameters of type Ref Constructor Description ConcurrentRefUpdateException(java.lang.String message, Ref ref, RefUpdate.Result rc)
Constructor for ConcurrentRefUpdateException.ConcurrentRefUpdateException(java.lang.String message, Ref ref, RefUpdate.Result rc, java.lang.Throwable cause)
Constructor for ConcurrentRefUpdateException. -
Uses of Ref in org.eclipse.jgit.awtui
Methods in org.eclipse.jgit.awtui with parameters of type Ref Modifier and Type Method Description protected int
AWTPlotRenderer. drawLabel(int x, int y, Ref ref)
Draw a decoration for the Ref ref at x,y -
Uses of Ref in org.eclipse.jgit.http.test
Methods in org.eclipse.jgit.http.test that return Ref Modifier and Type Method Description Ref
RefsUnreadableInMemoryRepository.RefsUnreadableRefDatabase. exactRef(java.lang.String name)
Read a single reference.Methods in org.eclipse.jgit.http.test that return types with arguments of type Ref Modifier and Type Method Description java.util.Map<java.lang.String,Ref>
RefsUnreadableInMemoryRepository.RefsUnreadableRefDatabase. getRefs(java.lang.String prefix)
Get a section of the reference namespace.java.util.List<Ref>
RefsUnreadableInMemoryRepository.RefsUnreadableRefDatabase. getRefsByPrefix(java.lang.String prefix)
Returns refs whose names start with a given prefix.java.util.List<Ref>
RefsUnreadableInMemoryRepository.RefsUnreadableRefDatabase. getRefsByPrefixWithExclusions(java.lang.String include, java.util.Set<java.lang.String> excludes)
Returns refs whose names start with a given prefix excluding all refs that start with one of the given prefixes.java.util.Set<Ref>
RefsUnreadableInMemoryRepository.RefsUnreadableRefDatabase. getTipsWithSha1(ObjectId id)
Returns all refs that resolve directly to the givenObjectId
. -
Uses of Ref in org.eclipse.jgit.internal.storage.dfs
Fields in org.eclipse.jgit.internal.storage.dfs declared as Ref Modifier and Type Field Description private Ref
DfsRefUpdate. dstRef
Fields in org.eclipse.jgit.internal.storage.dfs with type parameters of type Ref Modifier and Type Field Description (package private) RefList<Ref>
DfsRefDatabase.RefCache. ids
private java.util.Collection<Ref>
DfsGarbageCollector. refsBefore
(package private) RefList<Ref>
DfsRefDatabase.RefCache. sym
Methods in org.eclipse.jgit.internal.storage.dfs that return Ref Modifier and Type Method Description (package private) Ref
DfsRefDatabase. doPeel(Ref leaf)
Ref
DfsRefDatabase. exactRef(java.lang.String name)
Read a single reference.Ref
DfsReftableDatabase. exactRef(java.lang.String name)
Read a single reference.Ref
DfsRefDatabase.RefCache. get(java.lang.String name)
Find a reference by name.Ref
DfsRefDatabase. peel(Ref ref)
Peel a possibly unpeeled reference by traversing the annotated tags.Ref
DfsReftableDatabase. peel(Ref ref)
Peel a possibly unpeeled reference by traversing the annotated tags.(package private) static Ref
DfsRefDatabase. recreate(Ref old, Ref leaf, boolean hasVersioning)
private Ref
DfsRefDatabase. resolve(Ref ref, int depth, RefList<Ref> loose)
Methods in org.eclipse.jgit.internal.storage.dfs that return types with arguments of type Ref Modifier and Type Method Description java.util.List<Ref>
DfsRefDatabase. getAdditionalRefs()
Get the additional reference-like entities from the repository.private java.util.Collection<Ref>
DfsGarbageCollector. getAllRefs()
java.util.Map<java.lang.String,Ref>
DfsRefDatabase. getRefs(java.lang.String prefix)
Get a section of the reference namespace.java.util.Map<java.lang.String,Ref>
DfsReftableDatabase. getRefs(java.lang.String prefix)
Get a section of the reference namespace.java.util.List<Ref>
DfsReftableDatabase. getRefsByPrefix(java.lang.String prefix)
Returns refs whose names start with a given prefix.java.util.List<Ref>
DfsReftableDatabase. getRefsByPrefixWithExclusions(java.lang.String include, java.util.Set<java.lang.String> excludes)
Returns refs whose names start with a given prefix excluding all refs that start with one of the given prefixes.java.util.Set<Ref>
DfsReftableDatabase. getTipsWithSha1(ObjectId id)
Returns all refs that resolve directly to the givenObjectId
.Methods in org.eclipse.jgit.internal.storage.dfs with parameters of type Ref Modifier and Type Method Description protected void
DfsRefDatabase. cachePeeledState(Ref oldLeaf, Ref newLeaf)
Update the cached peeled state of a referenceprotected void
DfsReftableDatabase. cachePeeledState(Ref oldLeaf, Ref newLeaf)
Update the cached peeled state of a referenceprotected abstract boolean
DfsRefDatabase. compareAndPut(Ref oldRef, Ref newRef)
Compare a reference, and put if it matches.protected boolean
DfsReftableDatabase. compareAndPut(Ref oldRef, Ref newRef)
Compare a reference, and put if it matches.protected abstract boolean
DfsRefDatabase. compareAndRemove(Ref oldRef)
Compare a reference, and delete if it matches.protected boolean
DfsReftableDatabase. compareAndRemove(Ref oldRef)
Compare a reference, and delete if it matches.(package private) Ref
DfsRefDatabase. doPeel(Ref leaf)
private static boolean
DfsGarbageCollector. isHead(Ref ref)
private static boolean
DfsGarbageCollector. isTag(Ref ref)
Ref
DfsRefDatabase. peel(Ref ref)
Peel a possibly unpeeled reference by traversing the annotated tags.Ref
DfsReftableDatabase. peel(Ref ref)
Peel a possibly unpeeled reference by traversing the annotated tags.DfsRefDatabase.RefCache
DfsRefDatabase.RefCache. put(Ref ref)
Obtain a modified copy of the cache with a ref stored.(package private) static Ref
DfsRefDatabase. recreate(Ref old, Ref leaf, boolean hasVersioning)
private Ref
DfsRefDatabase. resolve(Ref ref, int depth, RefList<Ref> loose)
(package private) void
DfsRefDatabase. stored(Ref ref)
(package private) void
DfsReftableDatabase. stored(Ref ref)
Method parameters in org.eclipse.jgit.internal.storage.dfs with type arguments of type Ref Modifier and Type Method Description protected void
DfsReftableBatchRefUpdate. applyUpdates(java.util.List<Ref> newRefs, java.util.List<ReceiveCommand> pending)
private Ref
DfsRefDatabase. resolve(Ref ref, int depth, RefList<Ref> loose)
private void
DfsGarbageCollector. writeReftable(DfsPackDescription pack, java.util.Collection<Ref> refs)
Constructors in org.eclipse.jgit.internal.storage.dfs with parameters of type Ref Constructor Description DfsRefUpdate(DfsRefDatabase refdb, Ref ref)
Constructor parameters in org.eclipse.jgit.internal.storage.dfs with type arguments of type Ref Constructor Description RefCache(RefList<Ref> ids, DfsRefDatabase.RefCache old)
RefCache(RefList<Ref> ids, RefList<Ref> sym)
Initialize a new reference cache. -
Uses of Ref in org.eclipse.jgit.internal.storage.file
Subinterfaces of Ref in org.eclipse.jgit.internal.storage.file Modifier and Type Interface Description private static interface
RefDirectory.LooseRef
Classes in org.eclipse.jgit.internal.storage.file that implement Ref Modifier and Type Class Description private static class
RefDirectory.LooseNonTag
private static class
RefDirectory.LoosePeeledTag
private static class
RefDirectory.LooseSymbolicRef
private static class
RefDirectory.LooseUnpeeled
Fields in org.eclipse.jgit.internal.storage.file declared as Ref Modifier and Type Field Description private Ref
FileReftableDatabase.FileReftableRefUpdate. dstRef
Fields in org.eclipse.jgit.internal.storage.file with type parameters of type Ref Modifier and Type Field Description private java.util.Collection<Ref>
GC. lastPackedRefs
the refs which existed during the last call toGC.repack()
.(package private) RefList.Builder<Ref>
RefDirectory.LooseScanner. symbolic
Methods in org.eclipse.jgit.internal.storage.file that return Ref Modifier and Type Method Description private Ref
FileReftableDatabase. doPeel(Ref leaf)
Ref
FileReftableDatabase. exactRef(java.lang.String name)
Read a single reference.Ref
RefDirectory. exactRef(java.lang.String name)
Read a single reference.Ref
RefDirectory. firstExactRef(java.lang.String... refs)
Find the first named reference.Ref
FileReftableDatabase. peel(Ref ref)
Peel a possibly unpeeled reference by traversing the annotated tags.Ref
RefDirectory. peel(Ref ref)
Peel a possibly unpeeled reference by traversing the annotated tags.private Ref
RefDirectory. peeledPackedRef(Ref f)
Make sure a ref is peeled and has the Storage PACKED.private static Ref
PackedBatchRefUpdate. peeledRef(RevWalk walk, ReceiveCommand cmd)
private Ref
RefDirectory. readAndResolve(java.lang.String name, RefList<Ref> packed)
private Ref
RefDirectory. readRef(java.lang.String name, RefList<Ref> packed)
private static Ref
FileReftableDatabase. recreate(Ref old, Ref leaf, boolean hasVersioning)
private static Ref
RefDirectory. recreate(Ref old, ObjectIdRef leaf)
private static Ref
FileReftableDatabase. refForWrite(RevWalk rw, Ref r)
private Ref
RefDirectory. resolve(Ref ref, int depth, java.lang.String prefix, RefList<RefDirectory.LooseRef> loose, RefList<Ref> packed)
Methods in org.eclipse.jgit.internal.storage.file that return types with arguments of type Ref Modifier and Type Method Description private static RefList<Ref>
PackedBatchRefUpdate. applyUpdates(RevWalk walk, RefList<Ref> refs, java.util.List<ReceiveCommand> commands)
java.util.Map<java.lang.String,Ref>
RefDirectory. exactRef(java.lang.String... refs)
Read the specified references.java.util.List<Ref>
FileReftableDatabase. getAdditionalRefs()
Get the additional reference-like entities from the repository.java.util.List<Ref>
RefDirectory. getAdditionalRefs()
Get the additional reference-like entities from the repository.private java.util.Collection<Ref>
GC. getAllRefs()
Returns a collection of all refs and additional refs.java.util.List<Ref>
FileReftableDatabase. getRefs()
Returns all refs.java.util.Map<java.lang.String,Ref>
FileReftableDatabase. getRefs(java.lang.String prefix)
Get a section of the reference namespace.java.util.Map<java.lang.String,Ref>
RefDirectory. getRefs(java.lang.String prefix)
Get a section of the reference namespace.java.util.List<Ref>
FileReftableDatabase. getRefsByPrefixWithExclusions(java.lang.String include, java.util.Set<java.lang.String> excludes)
Returns refs whose names start with a given prefix excluding all refs that start with one of the given prefixes.private RefList<Ref>
RefDirectory. parsePackedRefs(java.io.BufferedReader br)
private RefList<Ref>
RefDirectory. upcast(RefList<? extends Ref> loose)
Methods in org.eclipse.jgit.internal.storage.file with parameters of type Ref Modifier and Type Method Description private Ref
FileReftableDatabase. doPeel(Ref leaf)
private ObjectIdRef
RefDirectory. doPeel(Ref leaf)
private static boolean
GC. equals(Ref r1, Ref r2)
private static boolean
GC. isHead(Ref ref)
private static boolean
GC. isTag(Ref ref)
private java.util.Set<ObjectId>
GC. listRefLogObjects(Ref ref, long minTime)
Ref
FileReftableDatabase. peel(Ref ref)
Peel a possibly unpeeled reference by traversing the annotated tags.Ref
RefDirectory. peel(Ref ref)
Peel a possibly unpeeled reference by traversing the annotated tags.private Ref
RefDirectory. peeledPackedRef(Ref f)
Make sure a ref is peeled and has the Storage PACKED.private static Ref
FileReftableDatabase. recreate(Ref old, Ref leaf, boolean hasVersioning)
private static Ref
RefDirectory. recreate(Ref old, ObjectIdRef leaf)
private static Ref
FileReftableDatabase. refForWrite(RevWalk rw, Ref r)
private Ref
RefDirectory. resolve(Ref ref, int depth, java.lang.String prefix, RefList<RefDirectory.LooseRef> loose, RefList<Ref> packed)
Method parameters in org.eclipse.jgit.internal.storage.file with type arguments of type Ref Modifier and Type Method Description protected void
FileReftableDatabase.FileReftableBatchRefUpdate. applyUpdates(java.util.List<Ref> newRefs, java.util.List<ReceiveCommand> pending)
private static RefList<Ref>
PackedBatchRefUpdate. applyUpdates(RevWalk walk, RefList<Ref> refs, java.util.List<ReceiveCommand> commands)
(package private) RefDirectory.PackedRefList
RefDirectory. commitPackedRefs(LockFile lck, RefList<Ref> refs, RefDirectory.PackedRefList oldPackedList, boolean changed)
private Ref
RefDirectory. readAndResolve(java.lang.String name, RefList<Ref> packed)
private Ref
RefDirectory. readRef(java.lang.String name, RefList<Ref> packed)
private RefList<Ref>
RefDirectory. upcast(RefList<? extends Ref> loose)
Constructors in org.eclipse.jgit.internal.storage.file with parameters of type Ref Constructor Description FileReftableRefUpdate(Ref ref)
LooseSymbolicRef(FileSnapshot snapshot, java.lang.String refName, Ref target)
RefDirectoryUpdate(RefDirectory r, Ref ref)
Constructor parameters in org.eclipse.jgit.internal.storage.file with type arguments of type Ref Constructor Description PackedRefList(RefList<Ref> src, FileSnapshot s, ObjectId i)
-
Uses of Ref in org.eclipse.jgit.internal.storage.reftable
Fields in org.eclipse.jgit.internal.storage.reftable declared as Ref Modifier and Type Field Description (package private) Ref
MergedReftable.FilteringMergedRefCursor. filteredRef
(package private) Ref
BlockWriter.RefEntry. ref
private Ref
MergedReftable.MergedRefCursor. ref
private Ref
ReftableReader.ObjCursorImpl. ref
private Ref
ReftableReader.RefCursorImpl. ref
Methods in org.eclipse.jgit.internal.storage.reftable that return Ref Modifier and Type Method Description Ref
Reftable. exactRef(java.lang.String refName)
Lookup a reference, or null if not found.Ref
ReftableDatabase. exactRef(java.lang.String name)
Read a single reference.Ref
MergedReftable.FilteringMergedRefCursor. getRef()
Ref
MergedReftable.MergedRefCursor. getRef()
abstract Ref
RefCursor. getRef()
Get reference at the current position.Ref
ReftableReader.ObjCursorImpl. getRef()
Ref
ReftableReader.RefCursorImpl. getRef()
private static Ref
BlockReader. newRef(java.lang.String name, long updateIndex)
(package private) Ref
BlockReader. readRef(long minUpdateIndex)
Ref
Reftable. resolve(Ref symref)
Resolve a symbolic reference to populate its value.private Ref
Reftable. resolve(Ref ref, int depth)
Methods in org.eclipse.jgit.internal.storage.reftable that return types with arguments of type Ref Modifier and Type Method Description java.util.List<Ref>
ReftableDatabase. getRefsByPrefix(java.lang.String prefix)
Returns refs whose names start with a given prefix.java.util.List<Ref>
ReftableDatabase. getRefsByPrefixWithExclusions(java.lang.String include, java.util.Set<java.lang.String> excludes)
Returns refs whose names start with a given prefix excluding all refs that start with one of the given prefixes.java.util.Set<Ref>
ReftableDatabase. getTipsWithSha1(ObjectId id)
Returns all refs that resolve directly to the givenObjectId
.private static java.util.List<Ref>
ReftableBatchRefUpdate. toNewRefs(RevWalk rw, java.util.List<ReceiveCommand> pending)
Methods in org.eclipse.jgit.internal.storage.reftable with parameters of type Ref Modifier and Type Method Description private void
ReftableWriter. indexRef(Ref ref, long blockPos)
private static boolean
ReftableBatchRefUpdate. matchOld(ReceiveCommand cmd, Ref ref)
private static byte[]
BlockWriter.RefEntry. nameUtf8(Ref ref)
Ref
Reftable. resolve(Ref symref)
Resolve a symbolic reference to populate its value.private Ref
Reftable. resolve(Ref ref, int depth)
static ReceiveCommand
ReftableDatabase. toCommand(Ref oldRef, Ref newRef)
private static ObjectId
ReftableDatabase. toId(Ref ref)
void
ReftableWriter. writeRef(Ref ref)
Write one reference to the reftable.void
ReftableWriter. writeRef(Ref ref, long updateIndex)
Write one reference to the reftable.Method parameters in org.eclipse.jgit.internal.storage.reftable with type arguments of type Ref Modifier and Type Method Description protected abstract void
ReftableBatchRefUpdate. applyUpdates(java.util.List<Ref> newRefs, java.util.List<ReceiveCommand> pending)
Implements the storage-specific part of the update.static Reftable
Reftable. from(java.util.Collection<Ref> refs)
References to convert into a reftableReftableWriter
ReftableWriter. sortAndWriteRefs(java.util.Collection<Ref> refsToPack)
Sort a collection of references and write them to the reftable.protected void
ReftableBatchRefUpdate. write(ReftableWriter writer, java.util.List<Ref> newRefs, java.util.List<ReceiveCommand> pending)
Writes the refs to the writer, and calls finish.Constructors in org.eclipse.jgit.internal.storage.reftable with parameters of type Ref Constructor Description RefEntry(Ref ref, long updateIndexDelta)
-
Uses of Ref in org.eclipse.jgit.lib
Classes in org.eclipse.jgit.lib that implement Ref Modifier and Type Class Description class
ObjectIdRef
static class
ObjectIdRef.PeeledNonTag
A reference to a non-tag object coming from a cached source.static class
ObjectIdRef.PeeledTag
An annotated tag whose peeled object has been cached.static class
ObjectIdRef.Unpeeled
Any reference whose peeled value is not yet known.class
SymbolicRef
A reference that indirectly points at anotherRef
.Fields in org.eclipse.jgit.lib declared as Ref Modifier and Type Field Description private Ref
RefUpdate. ref
private Ref
SymbolicRef. target
Fields in org.eclipse.jgit.lib with type parameters of type Ref Modifier and Type Field Description private java.util.Collection<Ref>
RefWriter. refs
Methods in org.eclipse.jgit.lib that return Ref Modifier and Type Method Description abstract Ref
RefDatabase. exactRef(java.lang.String name)
Read a single reference.Ref
Repository. exactRef(java.lang.String name)
Get a ref by name.Ref
RefDatabase. findRef(java.lang.String name)
Read a single reference.static Ref
RefDatabase. findRef(java.util.Map<java.lang.String,Ref> map, java.lang.String name)
Try to find the specified name in the ref map usingRefDatabase.SEARCH_PATH
.Ref
Repository. findRef(java.lang.String name)
Search for a ref by (possibly abbreviated) name.Ref
RefDatabase. firstExactRef(java.lang.String... refs)
Find the first named reference.Ref
ObjectIdRef. getLeaf()
Traverse target references untilisSymbolic()
is false.Ref
Ref. getLeaf()
Traverse target references untilisSymbolic()
is false.Ref
SymbolicRef. getLeaf()
Traverse target references untilisSymbolic()
is false.Ref
RefDatabase. getRef(java.lang.String name)
Deprecated.UseRefDatabase.findRef(String)
instead.Ref
RefUpdate. getRef()
Get the reference this update will create or modify.Ref
ObjectIdRef. getTarget()
Get the reference this reference points to, orthis
.Ref
Ref. getTarget()
Get the reference this reference points to, orthis
.Ref
SymbolicRef. getTarget()
Get the reference this reference points to, orthis
.abstract Ref
RefDatabase. peel(Ref ref)
Peel a possibly unpeeled reference by traversing the annotated tags.Ref
Repository. peel(Ref ref)
Deprecated.usegetRefDatabase().peel(ref)
instead.Methods in org.eclipse.jgit.lib that return types with arguments of type Ref Modifier and Type Method Description java.util.Map<java.lang.String,Ref>
RefDatabase. exactRef(java.lang.String... refs)
Read the specified references.abstract java.util.List<Ref>
RefDatabase. getAdditionalRefs()
Get the additional reference-like entities from the repository.java.util.Map<java.lang.String,Ref>
Repository. getAllRefs()
Deprecated.usegetRefDatabase().getRefs()
instead.java.util.Map<AnyObjectId,java.util.Set<Ref>>
Repository. getAllRefsByPeeledObjectId()
Get a map with all objects referenced by a peeled ref.java.util.List<Ref>
RefDatabase. getRefs()
Returns all refs.abstract java.util.Map<java.lang.String,Ref>
RefDatabase. getRefs(java.lang.String prefix)
Deprecated.useRefDatabase.getRefsByPrefix(java.lang.String)
insteadjava.util.List<Ref>
RefDatabase. getRefsByPrefix(java.lang.String prefix)
Returns refs whose names start with a given prefix.java.util.List<Ref>
RefDatabase. getRefsByPrefix(java.lang.String... prefixes)
Returns refs whose names start with one of the given prefixes.java.util.List<Ref>
RefDatabase. getRefsByPrefixWithExclusions(java.lang.String include, java.util.Set<java.lang.String> excludes)
Returns refs whose names start with a given prefix excluding all refs that start with one of the given prefixes.java.util.Map<java.lang.String,Ref>
Repository. getTags()
Deprecated.usegetRefDatabase().getRefsByPrefix(R_TAGS)
insteadjava.util.Set<Ref>
RefDatabase. getTipsWithSha1(ObjectId id)
Returns all refs that resolve directly to the givenObjectId
.static java.util.Collection<Ref>
RefComparator. sort(java.util.Collection<Ref> refs)
Sorts the collection of refs, returning a new collection.Methods in org.eclipse.jgit.lib with parameters of type Ref Modifier and Type Method Description int
RefComparator. compare(Ref o1, Ref o2)
static int
RefComparator. compareTo(Ref o1, java.lang.String o2)
Compare a reference to a name.static int
RefComparator. compareTo(Ref o1, Ref o2)
Compare two references by name.abstract Ref
RefDatabase. peel(Ref ref)
Peel a possibly unpeeled reference by traversing the annotated tags.Ref
Repository. peel(Ref ref)
Deprecated.usegetRefDatabase().peel(ref)
instead.private RevCommit
Repository. resolveReflog(RevWalk rw, Ref ref, java.lang.String time)
Method parameters in org.eclipse.jgit.lib with type arguments of type Ref Modifier and Type Method Description static Ref
RefDatabase. findRef(java.util.Map<java.lang.String,Ref> map, java.lang.String name)
Try to find the specified name in the ref map usingRefDatabase.SEARCH_PATH
.static java.util.Collection<Ref>
RefComparator. sort(java.util.Collection<Ref> refs)
Sorts the collection of refs, returning a new collection.Constructors in org.eclipse.jgit.lib with parameters of type Ref Constructor Description RefUpdate(Ref ref)
Construct a new update operation for the reference.SymbolicRef(java.lang.String refName, Ref target)
Create a new ref pairing.SymbolicRef(java.lang.String refName, Ref target, long updateIndex)
Create a new ref pairing.Constructor parameters in org.eclipse.jgit.lib with type arguments of type Ref Constructor Description RefWriter(java.util.Collection<Ref> refs)
Constructor for RefWriter.RefWriter(java.util.Map<java.lang.String,Ref> refs)
Constructor for RefWriter.RefWriter(RefList<Ref> refs)
Constructor for RefWriter. -
Uses of Ref in org.eclipse.jgit.merge
Methods in org.eclipse.jgit.merge with parameters of type Ref Modifier and Type Method Description java.lang.String
MergeMessageFormatter. format(java.util.List<Ref> refsToMerge, Ref target)
Construct the merge commit message.java.lang.String
SquashMessageFormatter. format(java.util.List<RevCommit> squashedCommits, Ref target)
Construct the squashed commit message.Method parameters in org.eclipse.jgit.merge with type arguments of type Ref Modifier and Type Method Description java.lang.String
MergeMessageFormatter. format(java.util.List<Ref> refsToMerge, Ref target)
Construct the merge commit message. -
Uses of Ref in org.eclipse.jgit.pgm
Fields in org.eclipse.jgit.pgm with type parameters of type Ref Modifier and Type Field Description private java.util.Map<AnyObjectId,java.util.Set<Ref>>
Log. allRefsByPeeledObjectId
private java.util.Map<java.lang.String,Ref>
Branch. printRefs
Methods in org.eclipse.jgit.pgm that return Ref Modifier and Type Method Description private Ref
Merge. getOldHead()
Methods in org.eclipse.jgit.pgm that return types with arguments of type Ref Modifier and Type Method Description private java.lang.Iterable<Ref>
ShowRef. getSortedRefs()
Methods in org.eclipse.jgit.pgm with parameters of type Ref Modifier and Type Method Description private void
Branch. addRef(java.lang.String name, Ref ref)
private boolean
Merge. isMergedInto(Ref oldHead, AnyObjectId src)
private void
Branch. printHead(ObjectReader reader, java.lang.String ref, boolean isCurrent, Ref refObj)
private void
LsRemote. show(Ref ref, java.lang.String name)
Method parameters in org.eclipse.jgit.pgm with type arguments of type Ref Modifier and Type Method Description private void
Branch. addRefs(java.util.Collection<Ref> refs, java.lang.String prefix)
-
Uses of Ref in org.eclipse.jgit.pgm.debug
Methods in org.eclipse.jgit.pgm.debug that return types with arguments of type Ref Modifier and Type Method Description private java.util.Map<java.lang.String,Ref>
RebuildCommitGraph. computeNewRefs()
private static java.util.Map<ObjectId,java.util.List<Ref>>
VerifyReftable. groupById(java.util.List<Ref> refs)
private RefList<Ref>
BenchmarkReftable. readLsRemote()
(package private) static java.util.List<Ref>
WriteReftable. readRefs(java.lang.String inputFile)
Methods in org.eclipse.jgit.pgm.debug with parameters of type Ref Modifier and Type Method Description private void
VerifyReftable. verify(Ref exp, RefCursor rc)
private void
ReadReftable. write(Ref r)
Method parameters in org.eclipse.jgit.pgm.debug with type arguments of type Ref Modifier and Type Method Description private void
VerifyReftable. byId(java.util.List<Ref> refs, ReftableReader reader)
private static java.util.Map<ObjectId,java.util.List<Ref>>
VerifyReftable. groupById(java.util.List<Ref> refs)
private void
VerifyReftable. scan(java.util.List<Ref> refs, ReftableReader reader)
private void
VerifyReftable. seek(java.util.List<Ref> refs, ReftableReader reader)
-
Uses of Ref in org.eclipse.jgit.revplot
Fields in org.eclipse.jgit.revplot declared as Ref Modifier and Type Field Description (package private) static Ref[]
PlotCommit. NO_REFS
(package private) Ref[]
PlotCommit. refs
Fields in org.eclipse.jgit.revplot with type parameters of type Ref Modifier and Type Field Description private java.util.Map<AnyObjectId,java.util.Set<Ref>>
PlotWalk. additionalRefMap
private java.util.Map<AnyObjectId,java.util.Set<Ref>>
PlotWalk. reverseRefMap
Methods in org.eclipse.jgit.revplot that return Ref Modifier and Type Method Description Ref
PlotCommit. getRef(int nth)
Get the nth Ref from this commit's ref list.private Ref[]
PlotWalk. getRefs(AnyObjectId commitId)
Methods in org.eclipse.jgit.revplot with parameters of type Ref Modifier and Type Method Description int
PlotWalk.PlotRefComparator. compare(Ref o1, Ref o2)
protected abstract int
AbstractPlotRenderer. drawLabel(int x, int y, Ref ref)
Draw a decoration for the Ref ref at x,y(package private) int
PlotWalk.PlotRefComparator. kind(Ref r)
Method parameters in org.eclipse.jgit.revplot with type arguments of type Ref Modifier and Type Method Description void
PlotWalk. addAdditionalRefs(java.lang.Iterable<Ref> refs)
Add additional refs to the walk -
Uses of Ref in org.eclipse.jgit.revwalk
Methods in org.eclipse.jgit.revwalk that return types with arguments of type Ref Modifier and Type Method Description static java.util.List<Ref>
RevWalkUtils. findBranchesReachableFrom(RevCommit commit, RevWalk revWalk, java.util.Collection<Ref> refs)
Find the list of branches a given commit is reachable from when following parents.static java.util.List<Ref>
RevWalkUtils. findBranchesReachableFrom(RevCommit commit, RevWalk revWalk, java.util.Collection<Ref> refs, ProgressMonitor monitor)
Find the list of branches a given commit is reachable from when following parents.Method parameters in org.eclipse.jgit.revwalk with type arguments of type Ref Modifier and Type Method Description static java.util.List<Ref>
RevWalkUtils. findBranchesReachableFrom(RevCommit commit, RevWalk revWalk, java.util.Collection<Ref> refs)
Find the list of branches a given commit is reachable from when following parents.static java.util.List<Ref>
RevWalkUtils. findBranchesReachableFrom(RevCommit commit, RevWalk revWalk, java.util.Collection<Ref> refs, ProgressMonitor monitor)
Find the list of branches a given commit is reachable from when following parents. -
Uses of Ref in org.eclipse.jgit.transport
Fields in org.eclipse.jgit.transport declared as Ref Modifier and Type Field Description private Ref
ReceiveCommand. ref
Fields in org.eclipse.jgit.transport with type parameters of type Ref Modifier and Type Field Description private java.util.Map<java.lang.String,Ref>
BaseConnection. advertisedRefs
(package private) java.util.Map<java.lang.String,Ref>
OperationResult. advertisedRefs
private java.util.HashMap<ObjectId,Ref>
FetchProcess. askFor
Set of refs we will actually wind up asking to obtain.private java.util.Map<java.lang.String,Ref>
FetchProcess. localRefs
private java.util.Map<java.lang.String,Ref>
WalkPushConnection. newRefs
Complete listing of refs the remote will have after our push.private java.util.Map<java.lang.String,Ref>
ReceivePack. refs
The refs we advertised as existing at the start of the connection.private java.util.Map<java.lang.String,Ref>
UploadPack. refs
Refs eligible for advertising to the client, set usingUploadPack.setAdvertisedRefs(java.util.Map<java.lang.String, org.eclipse.jgit.lib.Ref>)
.Methods in org.eclipse.jgit.transport that return Ref Modifier and Type Method Description private Ref
UploadPack. findRef(java.lang.String name)
Find a ref in the usual search path on behalf of the client.Ref
OperationResult. getAdvertisedRef(java.lang.String name)
Get a single advertised ref by name.Ref
BaseConnection. getRef(java.lang.String name)
Get a single advertised ref by name.Ref
Connection. getRef(java.lang.String name)
Get a single advertised ref by name.Ref
ReceiveCommand. getRef()
Get the ref, if this was advertised by the connection.private Ref
TransportAmazonS3.DatabaseS3. readRef(java.util.TreeMap<java.lang.String,Ref> avail, java.lang.String rn)
private Ref
TransportSftp.SftpObjectDB. readRef(java.util.TreeMap<java.lang.String,Ref> avail, java.lang.String path, java.lang.String name)
Methods in org.eclipse.jgit.transport that return types with arguments of type Ref Modifier and Type Method Description private java.util.Map<java.lang.String,Ref>
UploadPack. exactRefs(java.util.List<java.lang.String> names)
Read refs on behalf of the client.private java.util.Collection<Ref>
FetchProcess. expandAutoFollowTags()
java.util.Map<java.lang.String,Ref>
RefFilter. filter(java.util.Map<java.lang.String,Ref> refs)
Filters aMap
of refs before it is advertised to the client.private java.util.Map<java.lang.String,Ref>
ReceivePack. getAdvertisedOrDefaultRefs()
Get advertised refs, or the default if not explicitly advertised.private java.util.Map<java.lang.String,Ref>
UploadPack. getAdvertisedOrDefaultRefs()
protected abstract java.util.Map<java.lang.String,Ref>
AbstractAdvertiseRefsHook. getAdvertisedRefs(Repository repository, RevWalk revWalk)
Get the refs to advertise.java.util.Collection<Ref>
OperationResult. getAdvertisedRefs()
Get the complete list of refs advertised by the remote.java.util.Map<java.lang.String,Ref>
ReceivePack. getAdvertisedRefs()
Get refs which were advertised to the client.java.util.Map<java.lang.String,Ref>
UploadPack. getAdvertisedRefs()
Get refs which were advertised to the client.private java.util.Map<java.lang.String,Ref>
UploadPack. getFilteredRefs(java.util.Collection<java.lang.String> refPrefixes)
java.util.Collection<Ref>
BaseConnection. getRefs()
Get the complete list of refs advertised as available for fetching or pushing.java.util.Collection<Ref>
Connection. getRefs()
Get the complete list of refs advertised as available for fetching or pushing.java.util.Map<java.lang.String,Ref>
BaseConnection. getRefsMap()
Get the complete map of refs advertised as available for fetching or pushing.java.util.Map<java.lang.String,Ref>
Connection. getRefsMap()
Get the complete map of refs advertised as available for fetching or pushing.(package private) static java.util.stream.Stream<Ref>
UploadPack. importantRefsFirst(java.util.Collection<Ref> visibleRefs)
private java.util.Map<java.lang.String,Ref>
FetchProcess. localRefs()
private static java.util.Map<java.lang.String,Ref>
UploadPack. mapRefs(java.util.Map<java.lang.String,Ref> refs, java.util.List<java.lang.String> names)
Returns the specified references.(package private) java.util.Map<java.lang.String,Ref>
TransportHttp.HttpObjectDB. readAdvertisedImpl(java.io.BufferedReader br)
(package private) java.util.Map<java.lang.String,Ref>
TransportAmazonS3.DatabaseS3. readAdvertisedRefs()
(package private) java.util.Map<java.lang.String,Ref>
TransportSftp.SftpObjectDB. readAdvertisedRefs()
Methods in org.eclipse.jgit.transport with parameters of type Ref Modifier and Type Method Description private void
FetchProcess. deleteTrackingRef(FetchResult result, BatchRefUpdate batch, RefSpec spec, Ref localRef)
RefSpec
RefSpec. expandFromDestination(Ref r)
Expand this specification to exactly match a ref.RefSpec
RefSpec. expandFromSource(Ref r)
Expand this specification to exactly match a ref.void
BundleWriter. include(Ref r)
Include a single ref (a name/object pair) in the bundle.private static boolean
FetchProcess. isTag(Ref r)
private Ref.Storage
TransportAmazonS3.DatabaseS3. loose(Ref r)
private Ref.Storage
TransportSftp.SftpObjectDB. loose(Ref r)
boolean
RefSpec. matchDestination(Ref r)
Does this specification's destination description match the ref?boolean
RefSpec. matchSource(Ref r)
Does this specification's source description match the ref?private static ObjectId
UploadPack. refToObjectId(Ref ref)
(package private) void
ReceiveCommand. setRef(Ref r)
private void
FetchProcess. want(Ref src, RefSpec spec)
private void
FetchProcess. wantTag(Ref r)
Method parameters in org.eclipse.jgit.transport with type arguments of type Ref Modifier and Type Method Description protected void
BaseConnection. available(java.util.Map<java.lang.String,Ref> all)
Denote the list of refs available on the remote repository.private static void
UploadPack. checkNotAdvertisedWants(UploadPack up, java.util.List<ObjectId> notAdvertisedWants, java.util.Collection<Ref> visibleRefs)
protected abstract void
BaseFetchConnection. doFetch(ProgressMonitor monitor, java.util.Collection<Ref> want, java.util.Set<ObjectId> have)
Implementation ofBaseFetchConnection.fetch(ProgressMonitor, Collection, Set)
without checking for multiple fetch.protected void
BasePackFetchConnection. doFetch(ProgressMonitor monitor, java.util.Collection<Ref> want, java.util.Set<ObjectId> have, java.io.OutputStream outputStream)
Execute common ancestor negotiation and fetch the objects.protected void
BundleFetchConnection. doFetch(ProgressMonitor monitor, java.util.Collection<Ref> want, java.util.Set<ObjectId> have)
Implementation ofBaseFetchConnection.fetch(ProgressMonitor, Collection, Set)
without checking for multiple fetch.protected void
TransportHttp.SmartHttpFetchConnection. doFetch(ProgressMonitor monitor, java.util.Collection<Ref> want, java.util.Set<ObjectId> have, java.io.OutputStream outputStream)
protected void
WalkFetchConnection. doFetch(ProgressMonitor monitor, java.util.Collection<Ref> want, java.util.Set<ObjectId> have)
Implementation ofBaseFetchConnection.fetch(ProgressMonitor, Collection, Set)
without checking for multiple fetch.private void
BasePackFetchConnection. doFetchV2(ProgressMonitor monitor, java.util.Collection<Ref> want, java.io.OutputStream outputStream)
private void
FetchProcess. expandSingle(RefSpec spec, java.util.Set<Ref> matched)
private void
FetchProcess. expandWildcard(RefSpec spec, java.util.Set<Ref> matched)
void
BaseFetchConnection. fetch(ProgressMonitor monitor, java.util.Collection<Ref> want, java.util.Set<ObjectId> have)
Fetch objects we don't have but that are reachable from advertised refs.void
BaseFetchConnection. fetch(ProgressMonitor monitor, java.util.Collection<Ref> want, java.util.Set<ObjectId> have, java.io.OutputStream out)
Fetch objects we don't have but that are reachable from advertised refs.void
BasePackFetchConnection. fetch(ProgressMonitor monitor, java.util.Collection<Ref> want, java.util.Set<ObjectId> have)
Fetch objects we don't have but that are reachable from advertised refs.void
BasePackFetchConnection. fetch(ProgressMonitor monitor, java.util.Collection<Ref> want, java.util.Set<ObjectId> have, java.io.OutputStream outputStream)
Fetch objects we don't have but that are reachable from advertised refs.void
FetchConnection. fetch(ProgressMonitor monitor, java.util.Collection<Ref> want, java.util.Set<ObjectId> have)
Fetch objects we don't have but that are reachable from advertised refs.void
FetchConnection. fetch(ProgressMonitor monitor, java.util.Collection<Ref> want, java.util.Set<ObjectId> have, java.io.OutputStream out)
Fetch objects we don't have but that are reachable from advertised refs.java.util.Map<java.lang.String,Ref>
RefFilter. filter(java.util.Map<java.lang.String,Ref> refs)
Filters aMap
of refs before it is advertised to the client.private static void
UploadPack. findSymrefs(RefAdvertiser adv, java.util.Map<java.lang.String,Ref> refs)
(package private) static java.util.stream.Stream<Ref>
UploadPack. importantRefsFirst(java.util.Collection<Ref> visibleRefs)
private boolean
FetchProcess. isInitialBranchMissing(java.util.Map<java.lang.String,Ref> refsMap, java.lang.String initialBranch)
private static java.util.Map<java.lang.String,Ref>
UploadPack. mapRefs(java.util.Map<java.lang.String,Ref> refs, java.util.List<java.lang.String> names)
Returns the specified references.private int
BasePackFetchConnection. maxTimeWanted(java.util.Collection<Ref> wants)
private void
BasePackConnection. processLineV1(java.lang.String name, ObjectId id, java.util.Map<java.lang.String,Ref> avail)
private void
BasePackConnection. processLineV2(java.lang.String line, ObjectId id, java.lang.String rest, java.util.Map<java.lang.String,Ref> avail, java.util.Map<java.lang.String,java.lang.String> symRefs)
private void
WalkFetchConnection. queueWants(java.util.Collection<Ref> want)
private void
TransportAmazonS3.DatabaseS3. readLooseRefs(java.util.TreeMap<java.lang.String,Ref> avail)
private void
TransportSftp.SftpObjectDB. readLooseRefs(java.util.TreeMap<java.lang.String,Ref> avail, java.lang.String dir, java.lang.String prefix)
protected void
WalkRemoteObjectDatabase. readPackedRefs(java.util.Map<java.lang.String,Ref> avail)
Read a standard Git packed-refs file to discover known references.private void
WalkRemoteObjectDatabase. readPackedRefsImpl(java.util.Map<java.lang.String,Ref> avail, java.io.BufferedReader br)
private Ref
TransportAmazonS3.DatabaseS3. readRef(java.util.TreeMap<java.lang.String,Ref> avail, java.lang.String rn)
private Ref
TransportSftp.SftpObjectDB. readRef(java.util.TreeMap<java.lang.String,Ref> avail, java.lang.String path, java.lang.String name)
private static java.util.Set<ObjectId>
UploadPack. refIdSet(java.util.Collection<Ref> refs)
java.util.Set<ObjectId>
RefAdvertiser. send(java.util.Collection<Ref> refs)
Format an advertisement for the supplied refs.java.util.Set<ObjectId>
RefAdvertiser. send(java.util.Map<java.lang.String,Ref> refs)
Deprecated.useRefAdvertiser.send(Collection)
instead.private void
UploadPack. sendPack(ProgressMonitor pm, PacketLineOut pckOut, java.io.OutputStream packOut, FetchRequest req, PackStatistics.Accumulator accumulator, java.util.Collection<Ref> allTags, java.util.List<ObjectId> unshallowCommits, java.util.List<ObjectId> deepenNots)
Send the requested objects to the client.private void
UploadPack. sendPack(PackStatistics.Accumulator accumulator, FetchRequest req, java.util.Collection<Ref> allTags, java.util.List<ObjectId> unshallowCommits, java.util.List<ObjectId> deepenNots, PacketLineOut pckOut)
Send the requested objects to the client.private boolean
BasePackFetchConnection. sendWants(java.util.Collection<Ref> want, PacketLineOut p)
(package private) void
OperationResult. setAdvertisedRefs(URIish u, java.util.Map<java.lang.String,Ref> ar)
void
ReceivePack. setAdvertisedRefs(java.util.Map<java.lang.String,Ref> allRefs, java.util.Set<ObjectId> additionalHaves)
Set the refs advertised by this ReceivePack.void
UploadPack. setAdvertisedRefs(java.util.Map<java.lang.String,Ref> allRefs)
Set the refs advertised by this UploadPack.(package private) static void
BasePackConnection. updateWithSymRefs(java.util.Map<java.lang.String,Ref> refMap, java.util.Map<java.lang.String,java.lang.String> symRefs)
Updates the given refMap withSymbolicRef
s defined by the given symRefs.Constructors in org.eclipse.jgit.transport with parameters of type Ref Constructor Description RemoteRefUpdate(Repository localDb, Ref srcRef, java.lang.String remoteName, boolean forceUpdate, java.lang.String localName, ObjectId expectedOldObjectId)
Construct remote ref update request by providing an update specification. -
Uses of Ref in org.eclipse.jgit.util
Classes in org.eclipse.jgit.util with type parameters of type Ref Modifier and Type Class Description class
RefList<T extends Ref>
Specialized variant of an ArrayList to support aRefDatabase
.static class
RefList.Builder<T extends Ref>
Builder to facilitate fast construction of an immutable RefList.Fields in org.eclipse.jgit.util declared as Ref Modifier and Type Field Description private Ref[]
RefList.Builder. list
(package private) Ref[]
RefList. list
private Ref
RefMap.Ent. ref
Fields in org.eclipse.jgit.util with type parameters of type Ref Modifier and Type Field Description private static RefList<Ref>
RefList. EMPTY
private java.util.Set<java.util.Map.Entry<java.lang.String,Ref>>
RefMap. entrySet
(package private) RefList<Ref>
RefMap. loose
Immutable collection of the loose references at construction time.private java.util.Map.Entry<java.lang.String,Ref>
RefMap.SetIterator. next
(package private) RefList<Ref>
RefMap. packed
Immutable collection of the packed references at construction time.(package private) RefList<Ref>
RefMap. resolved
Immutable collection of resolved symbolic references.Methods in org.eclipse.jgit.util with type parameters of type Ref Modifier and Type Method Description static <T extends Ref>
RefList<T>RefList. emptyList()
Create an empty unmodifiable reference list.static <T extends Ref>
java.util.stream.Collector<T,?,RefList<T>>RefList. toRefList(java.util.function.BinaryOperator<T> mergeFunction)
Create aCollector
forRef
.Methods in org.eclipse.jgit.util that return Ref Modifier and Type Method Description Ref
RefMap. get(java.lang.Object key)
Ref
RefMap.Ent. getValue()
Ref
RefMap. put(java.lang.String keyName, Ref value)
Ref
RefMap. remove(java.lang.Object key)
private Ref
RefMap.SetIterator. resolveLoose(Ref l)
Ref
RefMap.Ent. setValue(Ref value)
Methods in org.eclipse.jgit.util that return types with arguments of type Ref Modifier and Type Method Description java.util.List<Ref>
RefList. asList()
Castthis
as an immutable, standardList
.java.util.Set<java.util.Map.Entry<java.lang.String,Ref>>
RefMap. entrySet()
java.util.Iterator<Ref>
RefList. iterator()
java.util.Map.Entry<java.lang.String,Ref>
RefMap.SetIterator. next()
java.util.Map.Entry<java.lang.String,Ref>
RefMap.SetIterator. peek()
static java.util.stream.Collector<Ref,?,RefMap>
RefMap. toRefMap(java.util.function.BinaryOperator<Ref> mergeFunction)
Create aCollector
forRef
.Methods in org.eclipse.jgit.util with parameters of type Ref Modifier and Type Method Description void
RefList.Builder. addAll(Ref[] src, int off, int cnt)
Add all items from a source array.Ref
RefMap. put(java.lang.String keyName, Ref value)
private Ref
RefMap.SetIterator. resolveLoose(Ref l)
Ref
RefMap.Ent. setValue(Ref value)
private RefMap.Ent
RefMap.SetIterator. toEntry(Ref p)
(package private) java.lang.String
RefMap. toMapKey(Ref ref)
Method parameters in org.eclipse.jgit.util with type arguments of type Ref Modifier and Type Method Description static java.util.stream.Collector<Ref,?,RefMap>
RefMap. toRefMap(java.util.function.BinaryOperator<Ref> mergeFunction)
Create aCollector
forRef
.Constructors in org.eclipse.jgit.util with parameters of type Ref Constructor Description Ent(Ref ref)
RefList(Ref[] list, int cnt)
Constructor parameters in org.eclipse.jgit.util with type arguments of type Ref Constructor Description RefMap(java.lang.String prefix, RefList<? extends Ref> packed, RefList<? extends Ref> loose, RefList<? extends Ref> resolved)
Construct a map to merge 3 collections together.
-