Uses of Interface
org.eclipse.jgit.lib.Ref
Packages that use Ref
Package
Description
High-level API commands (the porcelain of JGit).
Exceptions thrown by API commands.
Distributed file system based repository storage.
File based repository storage.
Core API for repository, config, refs, object database.
Content and commit history merge algorithms.
Building/rendering revision graphs.
Walking revision graphs (commit history).
Transport (fetch/push) for different protocols.
Utility classes.
-
Uses of Ref in org.eclipse.jgit.api
Methods in org.eclipse.jgit.api that return RefModifier and TypeMethodDescriptionCheckoutCommand.call()
CreateBranchCommand.call()
RenameBranchCommand.call()
ResetCommand.call()
TagCommand.call()
Methods in org.eclipse.jgit.api that return types with arguments of type RefModifier and TypeMethodDescriptionListBranchCommand.call()
ListTagCommand.call()
LsRemoteCommand.call()
LsRemoteCommand.callAsMap()
Same asLsRemoteCommand.call()
, but return Map instead of Collection.CherryPickResult.getCherryPickedRefs()
Get the cherry-pickedRef
sRevertCommand.getRevertedRefs()
Get the list of successfully revertedRef
's.Methods in org.eclipse.jgit.api with parameters of type RefModifier and TypeMethodDescriptionAdd a reference to push.Add a ref to the set that all results must match.Include a reference to a commitReference to a commit to be merged with the current headInclude aRef
to a commit to be revertedConstructor parameters in org.eclipse.jgit.api with type arguments of type RefModifierConstructorDescriptionCherryPickResult
(RevCommit newHead, List<Ref> cherryPickedRefs) Constructor for CherryPickResult -
Uses of Ref in org.eclipse.jgit.api.errors
Methods in org.eclipse.jgit.api.errors that return RefConstructors in org.eclipse.jgit.api.errors with parameters of type RefModifierConstructorDescriptionConcurrentRefUpdateException
(String message, Ref ref, RefUpdate.Result rc) Constructor for ConcurrentRefUpdateException.ConcurrentRefUpdateException
(String message, Ref ref, RefUpdate.Result rc, Throwable cause) Constructor for ConcurrentRefUpdateException. -
Uses of Ref in org.eclipse.jgit.internal.storage.dfs
Methods in org.eclipse.jgit.internal.storage.dfs that return RefModifier and TypeMethodDescriptionFind a reference by name.Methods in org.eclipse.jgit.internal.storage.dfs that return types with arguments of type RefModifier and TypeMethodDescriptionDfsRefDatabase.getAdditionalRefs()
DfsReftableDatabase.getRefsByPrefix
(String prefix) DfsReftableDatabase.getRefsByPrefixWithExclusions
(String include, Set<String> excludes) DfsReftableDatabase.getTipsWithSha1
(ObjectId id) Methods in org.eclipse.jgit.internal.storage.dfs with parameters of type RefModifier and TypeMethodDescriptionprotected void
DfsRefDatabase.cachePeeledState
(Ref oldLeaf, Ref newLeaf) Update the cached peeled state of a referenceprotected void
DfsReftableDatabase.cachePeeledState
(Ref oldLeaf, Ref newLeaf) protected abstract boolean
DfsRefDatabase.compareAndPut
(Ref oldRef, Ref newRef) Compare a reference, and put if it matches.protected boolean
DfsReftableDatabase.compareAndPut
(Ref oldRef, Ref newRef) protected abstract boolean
DfsRefDatabase.compareAndRemove
(Ref oldRef) Compare a reference, and delete if it matches.protected boolean
DfsReftableDatabase.compareAndRemove
(Ref oldRef) Obtain a modified copy of the cache with a ref stored.Method parameters in org.eclipse.jgit.internal.storage.dfs with type arguments of type RefModifier and TypeMethodDescriptionprotected void
DfsReftableBatchRefUpdate.applyUpdates
(List<Ref> newRefs, List<ReceiveCommand> pending) Constructor parameters in org.eclipse.jgit.internal.storage.dfs with type arguments of type Ref -
Uses of Ref in org.eclipse.jgit.internal.storage.file
Methods in org.eclipse.jgit.internal.storage.file that return RefMethods in org.eclipse.jgit.internal.storage.file that return types with arguments of type RefModifier and TypeMethodDescriptionFileReftableDatabase.getAdditionalRefs()
RefDirectory.getAdditionalRefs()
FileReftableDatabase.getRefs()
RefDirectory.getRefsByPrefix
(String... prefixes) FileReftableDatabase.getRefsByPrefixWithExclusions
(String include, Set<String> excludes) Methods in org.eclipse.jgit.internal.storage.file with parameters of type Ref -
Uses of Ref in org.eclipse.jgit.internal.storage.reftable
Methods in org.eclipse.jgit.internal.storage.reftable that return RefModifier and TypeMethodDescriptionLookup a reference, or null if not found.Read a single reference.abstract Ref
RefCursor.getRef()
Get reference at the current position.Resolve a symbolic reference to populate its value.Methods in org.eclipse.jgit.internal.storage.reftable that return types with arguments of type RefModifier and TypeMethodDescriptionReftableDatabase.getRefsByPrefix
(String prefix) Returns refs whose names start with a given prefix.ReftableDatabase.getRefsByPrefixWithExclusions
(String include, Set<String> excludes) Returns refs whose names start with a given prefix excluding all refs that start with one of the given prefixes.ReftableDatabase.getTipsWithSha1
(ObjectId id) Returns all refs that resolve directly to the givenObjectId
.Methods in org.eclipse.jgit.internal.storage.reftable with parameters of type RefModifier and TypeMethodDescriptionResolve a symbolic reference to populate its value.static ReceiveCommand
Create a ReceiveCommand for the change from oldRef to newRefvoid
Write one reference to the reftable.void
Write one reference to the reftable.Method parameters in org.eclipse.jgit.internal.storage.reftable with type arguments of type RefModifier and TypeMethodDescriptionprotected abstract void
ReftableBatchRefUpdate.applyUpdates
(List<Ref> newRefs, List<ReceiveCommand> pending) Implements the storage-specific part of the update.static Reftable
Reftable.from
(Collection<Ref> refs) References to convert into a reftableReftableWriter.sortAndWriteRefs
(Collection<Ref> refsToPack) Sort a collection of references and write them to the reftable.protected void
ReftableBatchRefUpdate.write
(ReftableWriter writer, List<Ref> newRefs, List<ReceiveCommand> pending) Writes the refs to the writer, and calls finish. -
Uses of Ref in org.eclipse.jgit.lib
Classes in org.eclipse.jgit.lib that implement RefModifier and TypeClassDescriptionclass
static class
A reference to a non-tag object coming from a cached source.static class
An annotated tag whose peeled object has been cached.static class
Any reference whose peeled value is not yet known.class
A reference that indirectly points at anotherRef
.Methods in org.eclipse.jgit.lib that return RefModifier and TypeMethodDescriptionabstract Ref
Read a single reference.final Ref
Get a ref by name.final Ref
Read a single reference.static Ref
Try to find the specified name in the ref map usingRefDatabase.SEARCH_PATH
.final Ref
Search for a ref by (possibly abbreviated) name.RefDatabase.firstExactRef
(String... refs) Find the first named reference.ObjectIdRef.getLeaf()
Ref.getLeaf()
Traverse target references untilisSymbolic()
is false.SymbolicRef.getLeaf()
final Ref
Deprecated.RefUpdate.getRef()
Get the reference this update will create or modify.ObjectIdRef.getTarget()
Ref.getTarget()
Get the reference this reference points to, orthis
.SymbolicRef.getTarget()
abstract Ref
Peel a possibly unpeeled reference by traversing the annotated tags.Deprecated.usegetRefDatabase().peel(ref)
instead.Methods in org.eclipse.jgit.lib that return types with arguments of type RefModifier and TypeMethodDescriptionRead the specified references.RefDatabase.getAdditionalRefs()
Get the additional reference-like entities from the repository.Repository.getAllRefs()
Deprecated.usegetRefDatabase().getRefs()
instead.Map<AnyObjectId,
Set<Ref>> Repository.getAllRefsByPeeledObjectId()
Get a map with all objects referenced by a peeled ref.RefDatabase.getRefs()
Returns all refs.Deprecated.useRefDatabase.getRefsByPrefix(java.lang.String)
insteadRefDatabase.getRefsByPrefix
(String prefix) Returns refs whose names start with a given prefix.RefDatabase.getRefsByPrefix
(String... prefixes) Returns refs whose names start with one of the given prefixes.RefDatabase.getRefsByPrefixWithExclusions
(String include, Set<String> excludes) Returns refs whose names start with a given prefix excluding all refs that start with one of the given prefixes.Repository.getTags()
Deprecated.usegetRefDatabase().getRefsByPrefix(R_TAGS)
insteadRefDatabase.getTipsWithSha1
(ObjectId id) Returns all refs that resolve directly to the givenObjectId
.static Collection<Ref>
RefComparator.sort
(Collection<Ref> refs) Sorts the collection of refs, returning a new collection.Methods in org.eclipse.jgit.lib with parameters of type RefModifier and TypeMethodDescriptionint
static int
Compare a reference to a name.static int
Compare two references by name.Repository.getReflogReader
(Ref ref) Get the reflog reader.abstract Ref
Peel a possibly unpeeled reference by traversing the annotated tags.Deprecated.usegetRefDatabase().peel(ref)
instead.Method parameters in org.eclipse.jgit.lib with type arguments of type RefModifier and TypeMethodDescriptionstatic Ref
Try to find the specified name in the ref map usingRefDatabase.SEARCH_PATH
.static Collection<Ref>
RefComparator.sort
(Collection<Ref> refs) Sorts the collection of refs, returning a new collection.Constructors in org.eclipse.jgit.lib with parameters of type RefModifierConstructorDescriptionprotected
Construct a new update operation for the reference.SymbolicRef
(String refName, Ref target) Create a new ref pairing.SymbolicRef
(String refName, Ref target, long updateIndex) Create a new ref pairing.Constructor parameters in org.eclipse.jgit.lib with type arguments of type Ref -
Uses of Ref in org.eclipse.jgit.merge
Methods in org.eclipse.jgit.merge with parameters of type RefModifier and TypeMethodDescriptionConstruct the merge commit message.Construct the squashed commit message.Method parameters in org.eclipse.jgit.merge with type arguments of type Ref -
Uses of Ref in org.eclipse.jgit.revplot
Methods in org.eclipse.jgit.revplot that return RefModifier and TypeMethodDescriptionfinal Ref
PlotCommit.getRef
(int nth) Get the nth Ref from this commit's ref list.Methods in org.eclipse.jgit.revplot with parameters of type RefModifier and TypeMethodDescriptionprotected abstract int
Draw a decoration for the Ref ref at x,yMethod parameters in org.eclipse.jgit.revplot with type arguments of type RefModifier and TypeMethodDescriptionvoid
PlotWalk.addAdditionalRefs
(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 RefModifier and TypeMethodDescriptionRevWalkUtils.findBranchesReachableFrom
(RevCommit commit, RevWalk revWalk, Collection<Ref> refs) Find the list of branches a given commit is reachable from when following parents.RevWalkUtils.findBranchesReachableFrom
(RevCommit commit, RevWalk revWalk, Collection<Ref> refs, ProgressMonitor monitor) Find the list of branches a given commit is reachable from when following parents.RevWalk.getMergedInto
(RevCommit commit, Collection<Ref> refs) Determine the Refs into which a commit is merged.RevWalk.getMergedInto
(RevCommit commit, Collection<Ref> refs, ProgressMonitor monitor) Determine the Refs into which a commit is merged.Method parameters in org.eclipse.jgit.revwalk with type arguments of type RefModifier and TypeMethodDescriptionRevWalkUtils.findBranchesReachableFrom
(RevCommit commit, RevWalk revWalk, Collection<Ref> refs) Find the list of branches a given commit is reachable from when following parents.RevWalkUtils.findBranchesReachableFrom
(RevCommit commit, RevWalk revWalk, Collection<Ref> refs, ProgressMonitor monitor) Find the list of branches a given commit is reachable from when following parents.RevWalk.getMergedInto
(RevCommit commit, Collection<Ref> refs) Determine the Refs into which a commit is merged.RevWalk.getMergedInto
(RevCommit commit, Collection<Ref> refs, ProgressMonitor monitor) Determine the Refs into which a commit is merged.boolean
RevWalk.isMergedIntoAll
(RevCommit commit, Collection<Ref> refs) Determine if acommit
is merged into all of the givenrefs
.boolean
RevWalk.isMergedIntoAny
(RevCommit commit, Collection<Ref> refs) Determine if acommit
is merged into any of the givenrefs
. -
Uses of Ref in org.eclipse.jgit.transport
Methods in org.eclipse.jgit.transport that return RefModifier and TypeMethodDescriptionfinal Ref
OperationResult.getAdvertisedRef
(String name) Get a single advertised ref by name.final Ref
Get a single advertised ref by name.ReceiveCommand.getRef()
Get the ref, if this was advertised by the connection.Methods in org.eclipse.jgit.transport that return types with arguments of type RefModifier and TypeMethodDescriptionFilters aMap
of refs before it is advertised to the client.AbstractAdvertiseRefsHook.getAdvertisedRefs
(Repository repository, RevWalk revWalk) Get the refs to advertise.OperationResult.getAdvertisedRefs()
Get the complete list of refs advertised by the remote.ReceivePack.getAdvertisedRefs()
Get refs which were advertised to the client.UploadPack.getAdvertisedRefs()
Get refs which were advertised to the client.final Collection<Ref>
BaseConnection.getRefs()
Connection.getRefs()
Get the complete list of refs advertised as available for fetching or pushing.BaseConnection.getRefsMap()
Connection.getRefsMap()
Get the complete map of refs advertised as available for fetching or pushing.Methods in org.eclipse.jgit.transport with parameters of type RefModifier and TypeMethodDescriptionRefSpec.expandFromDestination
(Ref r) Expand this specification to exactly match a ref.RefSpec.expandFromSource
(Ref r) Expand this specification to exactly match a ref.void
Include a single ref (a name/object pair) in the bundle.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?Method parameters in org.eclipse.jgit.transport with type arguments of type RefModifier and TypeMethodDescriptionprotected void
Denote the list of refs available on the remote repository.protected void
BasePackFetchConnection.doFetch
(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have, OutputStream outputStream) Execute common ancestor negotiation and fetch the objects.final void
BasePackFetchConnection.fetch
(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have) final void
BasePackFetchConnection.fetch
(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have, OutputStream outputStream) void
FetchConnection.fetch
(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have) Fetch objects we don't have but that are reachable from advertised refs.void
FetchConnection.fetch
(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have, OutputStream out) Fetch objects we don't have but that are reachable from advertised refs.Filters aMap
of refs before it is advertised to the client.RefAdvertiser.send
(Collection<Ref> refs) Format an advertisement for the supplied refs.Deprecated.useRefAdvertiser.send(Collection)
instead.void
Set the refs advertised by this ReceivePack.void
UploadPack.setAdvertisedRefs
(Map<String, Ref> allRefs) Set the refs advertised by this UploadPack.Constructors in org.eclipse.jgit.transport with parameters of type RefModifierConstructorDescriptionRemoteRefUpdate
(Repository localDb, Ref srcRef, String remoteName, boolean forceUpdate, 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 RefModifier and TypeClassDescriptionclass
Specialized variant of an ArrayList to support aRefDatabase
.static class
RefList.Builder<T extends Ref>
Builder to facilitate fast construction of an immutable RefList.Methods in org.eclipse.jgit.util with type parameters of type RefModifier and TypeMethodDescriptionRefList.emptyList()
Create an empty unmodifiable reference list.RefList.toRefList
(BinaryOperator<T> mergeFunction) Methods in org.eclipse.jgit.util that return RefModifier and TypeMethodDescriptionMethods in org.eclipse.jgit.util that return types with arguments of type RefModifier and TypeMethodDescriptionRefList.asList()
Castthis
as an immutable, standardList
.RefMap.entrySet()
RefList.iterator()
RefMap.toRefMap
(BinaryOperator<Ref> mergeFunction) Methods in org.eclipse.jgit.util with parameters of type RefModifier and TypeMethodDescriptionvoid
Add all items from a source array.Method parameters in org.eclipse.jgit.util with type arguments of type RefConstructor parameters in org.eclipse.jgit.util with type arguments of type Ref
RefDatabase.findRef(String)
instead.