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
Fields in org.eclipse.jgit.api with type parameters of type RefModifier and TypeFieldDescriptionCherryPickResult.cherryPickedRefs
CherryPickCommand.commits
MergeCommand.commits
RevertCommand.commits
NameRevCommand.refs
RevertCommand.revertedRefs
private final Comparator<Ref>
DescribeCommand.TAG_TIE_BREAKER
Methods in org.eclipse.jgit.api that return RefModifier and TypeMethodDescriptionCheckoutCommand.call()
CreateBranchCommand.call()
RenameBranchCommand.call()
ResetCommand.call()
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, String tagName, String newTagToString) 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.LsRemoteCommand.execute()
private Collection<Ref>
ListBranchCommand.filterRefs
(Collection<Ref> refs) DescribeCommand.getBestMatch
(List<Ref> tags) 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.private void
CloneCommand.addMergeConfig
(Repository clonedRepo, Ref head) Add a ref to the set that all results must match.private void
private String
CherryPickCommand.calculateOurName
(Ref headRef) private String
RevertCommand.calculateOurName
(Ref headRef) private RefUpdate
StashDropCommand.createRefUpdate
(Ref stashRef) private void
private boolean
DescribeCommand.filterLightweightTags
(Ref ref) Whether we use lightweight tags or not for describe Candidatesprivate static String
RebaseCommand.getHeadName
(Ref head) private ObjectId
DescribeCommand.getObjectIdFromRef
(Ref r) private String
CheckoutCommand.getShortBranchName
(Ref headRef) Include a reference to a commitReference to a commit to be merged with the current headInclude aRef
to a commit to be revertedprivate String
DescribeCommand.longDescription
(Ref tag, int depth, ObjectId tip) private RevCommit
CloneCommand.parseCommit
(Repository clonedRepo, Ref ref) private void
Method parameters in org.eclipse.jgit.api with type arguments of type RefModifier and TypeMethodDescriptionprivate Collection<Ref>
ListBranchCommand.filterRefs
(Collection<Ref> refs) DescribeCommand.getBestMatch
(List<Ref> tags) Constructor 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
Fields in org.eclipse.jgit.api.errors declared as RefMethods 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.awtui
Methods in org.eclipse.jgit.awtui with parameters of type Ref -
Uses of Ref in org.eclipse.jgit.internal.storage.dfs
Fields in org.eclipse.jgit.internal.storage.dfs declared as RefFields in org.eclipse.jgit.internal.storage.dfs with type parameters of type RefModifier and TypeFieldDescriptionDfsRefDatabase.RefCache.ids
private Collection<Ref>
DfsGarbageCollector.refsBefore
DfsRefDatabase.RefCache.sym
Methods in org.eclipse.jgit.internal.storage.dfs that return RefModifier and TypeMethodDescription(package private) Ref
Read a single reference.Read a single reference.Find a reference by name.Peel a possibly unpeeled reference by traversing the annotated tags.Peel a possibly unpeeled reference by traversing the annotated tags.(package private) static Ref
private Ref
Methods in org.eclipse.jgit.internal.storage.dfs that return types with arguments of type RefModifier and TypeMethodDescriptionDfsRefDatabase.getAdditionalRefs()
Get the additional reference-like entities from the repository.private Collection<Ref>
DfsGarbageCollector.getAllRefs()
Get a section of the reference namespace.Get a section of the reference namespace.DfsReftableDatabase.getRefsByPrefix
(String prefix) Returns refs whose names start with a given prefix.DfsReftableDatabase.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.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 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) 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
private static boolean
private static boolean
Peel a possibly unpeeled reference by traversing the annotated tags.Peel a possibly unpeeled reference by traversing the annotated tags.Obtain a modified copy of the cache with a ref stored.(package private) static Ref
private Ref
(package private) void
(package private) void
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) private Ref
private void
DfsGarbageCollector.writeReftable
(DfsPackDescription pack, Collection<Ref> refs) Constructors in org.eclipse.jgit.internal.storage.dfs with parameters of type RefConstructor parameters in org.eclipse.jgit.internal.storage.dfs with type arguments of type Ref -
Uses of Ref in org.eclipse.jgit.internal.storage.file
Subinterfaces of Ref in org.eclipse.jgit.internal.storage.fileClasses in org.eclipse.jgit.internal.storage.file that implement RefModifier and TypeClassDescriptionprivate static final class
private static final class
private static final class
private static final class
Fields in org.eclipse.jgit.internal.storage.file declared as RefFields in org.eclipse.jgit.internal.storage.file with type parameters of type RefModifier and TypeFieldDescriptionprivate Collection<Ref>
the refs which existed during the last call toGC.repack()
.(package private) final RefList.Builder<Ref>
RefDirectory.LooseScanner.symbolic
Methods in org.eclipse.jgit.internal.storage.file that return RefModifier and TypeMethodDescriptionprivate Ref
Read a single reference.Read a single reference.RefDirectory.firstExactRef
(String... refs) Find the first named reference.Peel a possibly unpeeled reference by traversing the annotated tags.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
(String name, RefList<Ref> packed) private Ref
private static Ref
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, String prefix, RefList<RefDirectory.LooseRef> loose, RefList<Ref> packed) Methods in org.eclipse.jgit.internal.storage.file that return types with arguments of type RefModifier and TypeMethodDescriptionPackedBatchRefUpdate.applyUpdates
(RevWalk walk, RefList<Ref> refs, List<ReceiveCommand> commands) Read the specified references.FileReftableDatabase.getAdditionalRefs()
Get the additional reference-like entities from the repository.RefDirectory.getAdditionalRefs()
Get the additional reference-like entities from the repository.private Collection<Ref>
GC.getAllRefs()
Returns a collection of all refs and additional refs.FileReftableDatabase.getRefs()
Returns all refs.Get a section of the reference namespace.Get a section of the reference namespace.FileReftableDatabase.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.RefDirectory.parsePackedRefs
(BufferedReader br) Methods in org.eclipse.jgit.internal.storage.file with parameters of type RefModifier and TypeMethodDescriptionprivate Ref
private ObjectIdRef
private static boolean
private static boolean
private static boolean
GC.listRefLogObjects
(Ref ref, long minTime) Peel a possibly unpeeled reference by traversing the annotated tags.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
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, String prefix, RefList<RefDirectory.LooseRef> loose, RefList<Ref> packed) Method parameters in org.eclipse.jgit.internal.storage.file with type arguments of type RefModifier and TypeMethodDescriptionprotected void
FileReftableDatabase.FileReftableBatchRefUpdate.applyUpdates
(List<Ref> newRefs, List<ReceiveCommand> pending) PackedBatchRefUpdate.applyUpdates
(RevWalk walk, RefList<Ref> refs, List<ReceiveCommand> commands) (package private) RefDirectory.PackedRefList
RefDirectory.commitPackedRefs
(LockFile lck, RefList<Ref> refs, RefDirectory.PackedRefList oldPackedList, boolean changed) private Ref
RefDirectory.readAndResolve
(String name, RefList<Ref> packed) private Ref
Constructors in org.eclipse.jgit.internal.storage.file with parameters of type RefModifierConstructorDescription(package private)
FileReftableRefUpdate
(Ref ref) (package private)
LooseSymbolicRef
(FileSnapshot snapshot, String refName, Ref target) (package private)
RefDirectoryUpdate
(RefDirectory r, Ref ref) Constructor parameters in org.eclipse.jgit.internal.storage.file with type arguments of type RefModifierConstructorDescriptionprivate
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 RefModifier and TypeFieldDescription(package private) Ref
MergedReftable.FilteringMergedRefCursor.filteredRef
(package private) final 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 RefModifier and TypeMethodDescriptionLookup a reference, or null if not found.Read a single reference.MergedReftable.FilteringMergedRefCursor.getRef()
MergedReftable.MergedRefCursor.getRef()
abstract Ref
RefCursor.getRef()
Get reference at the current position.ReftableReader.ObjCursorImpl.getRef()
ReftableReader.RefCursorImpl.getRef()
private static Ref
(package private) Ref
BlockReader.readRef
(long minUpdateIndex) Resolve a symbolic reference to populate its value.private Ref
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
.ReftableBatchRefUpdate.toNewRefs
(RevWalk rw, List<ReceiveCommand> pending) Methods in org.eclipse.jgit.internal.storage.reftable with parameters of type RefModifier and TypeMethodDescriptionprivate void
private static boolean
ReftableBatchRefUpdate.matchOld
(ReceiveCommand cmd, Ref ref) private static byte[]
Resolve a symbolic reference to populate its value.private Ref
static ReceiveCommand
private static ObjectId
void
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.Constructors in org.eclipse.jgit.internal.storage.reftable with parameters of type Ref -
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
.Fields in org.eclipse.jgit.lib declared as RefModifier and TypeFieldDescriptionprivate final Ref
RefUpdate.ref
private final Ref
SymbolicRef.target
Fields in org.eclipse.jgit.lib with type parameters of type RefMethods 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()
Traverse target references untilisSymbolic()
is false.Ref.getLeaf()
Traverse target references untilisSymbolic()
is false.SymbolicRef.getLeaf()
Traverse target references untilisSymbolic()
is false.final Ref
Deprecated.RefUpdate.getRef()
Get the reference this update will create or modify.ObjectIdRef.getTarget()
Get the reference this reference points to, orthis
.Ref.getTarget()
Get the reference this reference points to, orthis
.SymbolicRef.getTarget()
Get the reference this reference points to, orthis
.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.abstract Ref
Peel a possibly unpeeled reference by traversing the annotated tags.Deprecated.usegetRefDatabase().peel(ref)
instead.private RevCommit
Repository.resolveReflog
(RevWalk rw, Ref ref, String time) 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.pgm
Fields in org.eclipse.jgit.pgm with type parameters of type RefMethods in org.eclipse.jgit.pgm that return RefMethods in org.eclipse.jgit.pgm that return types with arguments of type RefMethods in org.eclipse.jgit.pgm with parameters of type RefModifier and TypeMethodDescriptionprivate void
private boolean
Merge.isMergedInto
(Ref oldHead, AnyObjectId src) private void
Branch.printHead
(ObjectReader reader, String ref, boolean isCurrent, Ref refObj) private void
Method parameters in org.eclipse.jgit.pgm with type arguments of type RefModifier and TypeMethodDescriptionprivate void
Branch.addRefs
(Collection<Ref> refs, 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 RefModifier and TypeMethodDescriptionRebuildCommitGraph.computeNewRefs()
BenchmarkReftable.readLsRemote()
Methods in org.eclipse.jgit.pgm.debug with parameters of type RefModifier and TypeMethodDescriptionprivate void
private void
Method parameters in org.eclipse.jgit.pgm.debug with type arguments of type RefModifier and TypeMethodDescriptionprivate void
VerifyReftable.byId
(List<Ref> refs, ReftableReader reader) private void
VerifyReftable.scan
(List<Ref> refs, ReftableReader reader) private void
VerifyReftable.seek
(List<Ref> refs, ReftableReader reader) -
Uses of Ref in org.eclipse.jgit.revplot
Fields in org.eclipse.jgit.revplot declared as RefModifier and TypeFieldDescription(package private) static final Ref[]
PlotCommit.NO_REFS
(package private) Ref[]
PlotCommit.refs
Fields in org.eclipse.jgit.revplot with type parameters of type RefModifier and TypeFieldDescriptionprivate Map<AnyObjectId,
Set<Ref>> PlotWalk.additionalRefMap
private Map<AnyObjectId,
Set<Ref>> PlotWalk.reverseRefMap
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.private Ref[]
PlotWalk.getRefs
(AnyObjectId commitId) Methods in org.eclipse.jgit.revplot with parameters of type RefModifier and TypeMethodDescriptionint
protected abstract int
Draw a decoration for the Ref ref at x,y(package private) int
Method 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 needle, Collection<Ref> haystacks, Enum returnStrategy, ProgressMonitor monitor) 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 needle, Collection<Ref> haystacks, Enum returnStrategy, ProgressMonitor monitor) 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
Fields in org.eclipse.jgit.transport declared as RefFields in org.eclipse.jgit.transport with type parameters of type RefModifier and TypeFieldDescriptionBaseConnection.advertisedRefs
OperationResult.advertisedRefs
FetchProcess.askFor
Set of refs we will actually wind up asking to obtain.FetchProcess.localRefs
WalkPushConnection.newRefs
Complete listing of refs the remote will have after our push.ReceivePack.refs
The refs we advertised as existing at the start of the connection.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 RefModifier and TypeMethodDescriptionprivate Ref
Find a ref in the usual search path on behalf of the client.final Ref
OperationResult.getAdvertisedRef
(String name) Get a single advertised ref by name.final Ref
Get a single advertised ref by name.Get a single advertised ref by name.ReceiveCommand.getRef()
Get the ref, if this was advertised by the connection.private Ref
private Ref
Methods in org.eclipse.jgit.transport that return types with arguments of type RefModifier and TypeMethodDescriptionRead refs on behalf of the client.private Collection<Ref>
FetchProcess.expandAutoFollowTags()
Filters aMap
of refs before it is advertised to the client.ReceivePack.getAdvertisedOrDefaultRefs()
Get advertised refs, or the default if not explicitly advertised.UploadPack.getAdvertisedOrDefaultRefs()
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.ReceivePack.getAllRefs()
Extract the full list of refs from the ref-db.UploadPack.getAllRefs()
Extract the full list of refs from the ref-db.UploadPack.getFilteredRefs
(Collection<String> refPrefixes) final Collection<Ref>
BaseConnection.getRefs()
Get the complete list of refs advertised as available for fetching or pushing.Connection.getRefs()
Get the complete list of refs advertised as available for fetching or pushing.BaseConnection.getRefsMap()
Get the complete map of refs advertised as available for fetching or pushing.Connection.getRefsMap()
Get the complete map of refs advertised as available for fetching or pushing.UploadPack.importantRefsFirst
(Collection<Ref> visibleRefs) FetchProcess.localRefs()
Returns the specified references.TransportHttp.HttpObjectDB.readAdvertisedImpl
(BufferedReader br) TransportAmazonS3.DatabaseS3.readAdvertisedRefs()
TransportSftp.SftpObjectDB.readAdvertisedRefs()
Methods in org.eclipse.jgit.transport with parameters of type RefModifier and TypeMethodDescriptionprivate void
FetchProcess.deleteTrackingRef
(FetchResult result, BatchRefUpdate batch, RefSpec spec, Ref localRef) RefSpec.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.private static boolean
private Ref.Storage
private Ref.Storage
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
private void
private void
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.private static void
UploadPack.checkNotAdvertisedWants
(UploadPack up, List<ObjectId> notAdvertisedWants, Collection<Ref> visibleRefs) protected abstract void
BaseFetchConnection.doFetch
(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have) Implementation ofBaseFetchConnection.fetch(ProgressMonitor, Collection, Set)
without checking for multiple fetch.protected void
BasePackFetchConnection.doFetch
(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have, OutputStream outputStream) Execute common ancestor negotiation and fetch the objects.protected void
BundleFetchConnection.doFetch
(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have) Implementation ofBaseFetchConnection.fetch(ProgressMonitor, Collection, Set)
without checking for multiple fetch.protected void
TransportHttp.SmartHttpFetchConnection.doFetch
(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have, OutputStream outputStream) protected void
WalkFetchConnection.doFetch
(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have) Implementation ofBaseFetchConnection.fetch(ProgressMonitor, Collection, Set)
without checking for multiple fetch.private void
BasePackFetchConnection.doFetchV2
(ProgressMonitor monitor, Collection<Ref> want, OutputStream outputStream) private void
FetchProcess.expandSingle
(RefSpec spec, Set<Ref> matched) private void
FetchProcess.expandWildcard
(RefSpec spec, Set<Ref> matched) final void
BaseFetchConnection.fetch
(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have) Fetch objects we don't have but that are reachable from advertised refs.final void
BaseFetchConnection.fetch
(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have, OutputStream out) Fetch objects we don't have but that are reachable from advertised refs.final void
BasePackFetchConnection.fetch
(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have) Fetch objects we don't have but that are reachable from advertised refs.final void
BasePackFetchConnection.fetch
(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have, OutputStream outputStream) Fetch objects we don't have but that are reachable from advertised refs.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.private static void
UploadPack.findSymrefs
(RefAdvertiser adv, Map<String, Ref> refs) UploadPack.importantRefsFirst
(Collection<Ref> visibleRefs) private boolean
FetchProcess.isInitialBranchMissing
(Map<String, Ref> refsMap, String initialBranch) Returns the specified references.private int
BasePackFetchConnection.maxTimeWanted
(Collection<Ref> wants) private void
private void
BasePackConnection.processLineV2
(String line, ObjectId id, String rest, Map<String, Ref> avail, Map<String, String> symRefs) private void
WalkFetchConnection.queueWants
(Collection<Ref> want) private void
TransportAmazonS3.DatabaseS3.readLooseRefs
(TreeMap<String, Ref> avail) private void
protected void
WalkRemoteObjectDatabase.readPackedRefs
(Map<String, Ref> avail) Read a standard Git packed-refs file to discover known references.private void
WalkRemoteObjectDatabase.readPackedRefsImpl
(Map<String, Ref> avail, BufferedReader br) private Ref
private Ref
UploadPack.refIdSet
(Collection<Ref> refs) RefAdvertiser.send
(Collection<Ref> refs) Format an advertisement for the supplied refs.Deprecated.useRefAdvertiser.send(Collection)
instead.private void
UploadPack.sendPack
(ProgressMonitor pm, PacketLineOut pckOut, OutputStream packOut, FetchRequest req, PackStatistics.Accumulator accumulator, Collection<Ref> allTags, List<ObjectId> unshallowCommits, List<ObjectId> deepenNots) Send the requested objects to the client.private void
UploadPack.sendPack
(PackStatistics.Accumulator accumulator, FetchRequest req, Collection<Ref> allTags, List<ObjectId> unshallowCommits, List<ObjectId> deepenNots, PacketLineOut pckOut) Send the requested objects to the client.private boolean
BasePackFetchConnection.sendWants
(Collection<Ref> want, PacketLineOut p) (package private) void
OperationResult.setAdvertisedRefs
(URIish u, Map<String, Ref> ar) void
Set the refs advertised by this ReceivePack.void
UploadPack.setAdvertisedRefs
(Map<String, Ref> allRefs) Set the refs advertised by this UploadPack.(package private) static void
Updates the given refMap withSymbolicRef
s defined by the given symRefs.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.Fields in org.eclipse.jgit.util declared as RefModifier and TypeFieldDescriptionprivate Ref[]
RefList.Builder.list
(package private) final Ref[]
RefList.list
private Ref
RefMap.Ent.ref
Fields in org.eclipse.jgit.util with type parameters of type RefModifier and TypeFieldDescriptionRefList.EMPTY
RefMap.entrySet
RefMap.loose
Immutable collection of the loose references at construction time.RefMap.SetIterator.next
RefMap.packed
Immutable collection of the packed references at construction time.RefMap.resolved
Immutable collection of resolved symbolic references.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 TypeMethodDescriptionRefMap.Ent.getValue()
private Ref
RefMap.SetIterator.resolveLoose
(Ref l) Methods 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.SetIterator.next()
RefMap.SetIterator.peek()
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.private Ref
RefMap.SetIterator.resolveLoose
(Ref l) private RefMap.Ent
(package private) String
Method parameters in org.eclipse.jgit.util with type arguments of type RefConstructors in org.eclipse.jgit.util with parameters of type RefModifierConstructorDescription(package private)
(package private)
Constructor parameters in org.eclipse.jgit.util with type arguments of type Ref
RefDatabase.findRef(String)
instead.