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.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.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
Methods in org.eclipse.jgit.api that return Ref Modifier and Type Method Description RefCheckoutCommand. call()RefCreateBranchCommand. call()RefRenameBranchCommand. call()RefResetCommand. call()RefTagCommand. call()Methods in org.eclipse.jgit.api that return types with arguments of type Ref Modifier and Type Method Description List<Ref>ListBranchCommand. call()List<Ref>ListTagCommand. call()Collection<Ref>LsRemoteCommand. call()Map<String,Ref>LsRemoteCommand. callAsMap()Same asLsRemoteCommand.call(), but return Map instead of Collection.List<Ref>CherryPickResult. getCherryPickedRefs()Get the cherry-pickedRefsList<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 PushCommandPushCommand. add(Ref ref)Add a reference to push.NameRevCommandNameRevCommand. addRef(Ref ref)Add a ref to the set that all results must match.CherryPickCommandCherryPickCommand. include(Ref commit)Include a reference to a commitMergeCommandMergeCommand. include(Ref aCommit)Reference to a commit to be merged with the current headRevertCommandRevertCommand. include(Ref commit)Include aRefto a commit to be revertedConstructor parameters in org.eclipse.jgit.api with type arguments of type Ref Constructor Description CherryPickResult(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 Ref Modifier and Type Method Description RefConcurrentRefUpdateException. getRef()GetRefConstructors in org.eclipse.jgit.api.errors with parameters of type Ref Constructor Description ConcurrentRefUpdateException(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 Ref Modifier and Type Method Description RefDfsRefDatabase. exactRef(String name)Read a single reference.RefDfsReftableDatabase. exactRef(String name)Read a single reference.RefDfsRefDatabase.RefCache. get(String name)Find a reference by name.RefDfsRefDatabase. peel(Ref ref)Peel a possibly unpeeled reference by traversing the annotated tags.RefDfsReftableDatabase. peel(Ref ref)Peel a possibly unpeeled reference by traversing the annotated tags.Methods in org.eclipse.jgit.internal.storage.dfs that return types with arguments of type Ref Modifier and Type Method Description List<Ref>DfsRefDatabase. getAdditionalRefs()Get the additional reference-like entities from the repository.Map<String,Ref>DfsRefDatabase. getRefs(String prefix)Get a section of the reference namespace.Map<String,Ref>DfsReftableDatabase. getRefs(String prefix)Get a section of the reference namespace.List<Ref>DfsReftableDatabase. getRefsByPrefix(String prefix)Returns refs whose names start with a given prefix.List<Ref>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.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 voidDfsRefDatabase. cachePeeledState(Ref oldLeaf, Ref newLeaf)Update the cached peeled state of a referenceprotected voidDfsReftableDatabase. cachePeeledState(Ref oldLeaf, Ref newLeaf)Update the cached peeled state of a referenceprotected abstract booleanDfsRefDatabase. compareAndPut(Ref oldRef, Ref newRef)Compare a reference, and put if it matches.protected booleanDfsReftableDatabase. compareAndPut(Ref oldRef, Ref newRef)Compare a reference, and put if it matches.protected abstract booleanDfsRefDatabase. compareAndRemove(Ref oldRef)Compare a reference, and delete if it matches.protected booleanDfsReftableDatabase. compareAndRemove(Ref oldRef)Compare a reference, and delete if it matches.RefDfsRefDatabase. peel(Ref ref)Peel a possibly unpeeled reference by traversing the annotated tags.RefDfsReftableDatabase. peel(Ref ref)Peel a possibly unpeeled reference by traversing the annotated tags.DfsRefDatabase.RefCacheDfsRefDatabase.RefCache. put(Ref ref)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 Ref Modifier and Type Method Description protected voidDfsReftableBatchRefUpdate. applyUpdates(List<Ref> newRefs, List<ReceiveCommand> pending)Constructor parameters in org.eclipse.jgit.internal.storage.dfs with type arguments of type Ref Constructor Description RefCache(RefList<Ref> ids, RefList<Ref> sym)Initialize a new reference cache. -
Uses of Ref in org.eclipse.jgit.internal.storage.file
Methods in org.eclipse.jgit.internal.storage.file that return Ref Modifier and Type Method Description RefFileReftableDatabase. exactRef(String name)Read a single reference.RefRefDirectory. exactRef(String name)Read a single reference.RefRefDirectory. firstExactRef(String... refs)Find the first named reference.RefFileReftableDatabase. peel(Ref ref)Peel a possibly unpeeled reference by traversing the annotated tags.RefRefDirectory. peel(Ref ref)Peel a possibly unpeeled reference by traversing the annotated tags.Methods in org.eclipse.jgit.internal.storage.file that return types with arguments of type Ref Modifier and Type Method Description Map<String,Ref>RefDirectory. exactRef(String... refs)Read the specified references.List<Ref>FileReftableDatabase. getAdditionalRefs()Get the additional reference-like entities from the repository.List<Ref>RefDirectory. getAdditionalRefs()Get the additional reference-like entities from the repository.List<Ref>FileReftableDatabase. getRefs()Returns all refs.Map<String,Ref>FileReftableDatabase. getRefs(String prefix)Get a section of the reference namespace.Map<String,Ref>RefDirectory. getRefs(String prefix)Get a section of the reference namespace.List<Ref>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.Methods in org.eclipse.jgit.internal.storage.file with parameters of type Ref Modifier and Type Method Description RefFileReftableDatabase. peel(Ref ref)Peel a possibly unpeeled reference by traversing the annotated tags.RefRefDirectory. peel(Ref ref)Peel a possibly unpeeled reference by traversing the annotated tags. -
Uses of Ref in org.eclipse.jgit.internal.storage.reftable
Methods in org.eclipse.jgit.internal.storage.reftable that return Ref Modifier and Type Method Description RefReftable. exactRef(String refName)Lookup a reference, or null if not found.RefReftableDatabase. exactRef(String name)Read a single reference.abstract RefRefCursor. getRef()Get reference at the current position.RefReftable. resolve(Ref symref)Resolve a symbolic reference to populate its value.Methods in org.eclipse.jgit.internal.storage.reftable that return types with arguments of type Ref Modifier and Type Method Description List<Ref>ReftableDatabase. getRefsByPrefix(String prefix)Returns refs whose names start with a given prefix.List<Ref>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.Set<Ref>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 Ref Modifier and Type Method Description RefReftable. resolve(Ref symref)Resolve a symbolic reference to populate its value.static ReceiveCommandReftableDatabase. toCommand(Ref oldRef, Ref newRef)voidReftableWriter. writeRef(Ref ref)Write one reference to the reftable.voidReftableWriter. 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 voidReftableBatchRefUpdate. applyUpdates(List<Ref> newRefs, List<ReceiveCommand> pending)Implements the storage-specific part of the update.static ReftableReftable. from(Collection<Ref> refs)References to convert into a reftableReftableWriterReftableWriter. sortAndWriteRefs(Collection<Ref> refsToPack)Sort a collection of references and write them to the reftable.protected voidReftableBatchRefUpdate. 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 Ref Modifier and Type Class Description classObjectIdRefstatic classObjectIdRef.PeeledNonTagA reference to a non-tag object coming from a cached source.static classObjectIdRef.PeeledTagAn annotated tag whose peeled object has been cached.static classObjectIdRef.UnpeeledAny reference whose peeled value is not yet known.classSymbolicRefA reference that indirectly points at anotherRef.Methods in org.eclipse.jgit.lib that return Ref Modifier and Type Method Description abstract RefRefDatabase. exactRef(String name)Read a single reference.RefRepository. exactRef(String name)Get a ref by name.RefRefDatabase. findRef(String name)Read a single reference.static RefRefDatabase. findRef(Map<String,Ref> map, String name)Try to find the specified name in the ref map usingRefDatabase.SEARCH_PATH.RefRepository. findRef(String name)Search for a ref by (possibly abbreviated) name.RefRefDatabase. firstExactRef(String... refs)Find the first named reference.RefObjectIdRef. getLeaf()Traverse target references untilisSymbolic()is false.RefRef. getLeaf()Traverse target references untilisSymbolic()is false.RefSymbolicRef. getLeaf()Traverse target references untilisSymbolic()is false.RefRefDatabase. getRef(String name)Deprecated.UseRefDatabase.findRef(String)instead.RefRefUpdate. getRef()Get the reference this update will create or modify.RefObjectIdRef. getTarget()Get the reference this reference points to, orthis.RefRef. getTarget()Get the reference this reference points to, orthis.RefSymbolicRef. getTarget()Get the reference this reference points to, orthis.abstract RefRefDatabase. peel(Ref ref)Peel a possibly unpeeled reference by traversing the annotated tags.RefRepository. 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 Map<String,Ref>RefDatabase. exactRef(String... refs)Read the specified references.abstract List<Ref>RefDatabase. getAdditionalRefs()Get the additional reference-like entities from the repository.Map<String,Ref>Repository. getAllRefs()Deprecated.usegetRefDatabase().getRefs()instead.Map<AnyObjectId,Set<Ref>>Repository. getAllRefsByPeeledObjectId()Get a map with all objects referenced by a peeled ref.List<Ref>RefDatabase. getRefs()Returns all refs.abstract Map<String,Ref>RefDatabase. getRefs(String prefix)Deprecated.useRefDatabase.getRefsByPrefix(java.lang.String)insteadList<Ref>RefDatabase. getRefsByPrefix(String prefix)Returns refs whose names start with a given prefix.List<Ref>RefDatabase. getRefsByPrefix(String... prefixes)Returns refs whose names start with one of the given prefixes.List<Ref>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.Map<String,Ref>Repository. getTags()Deprecated.usegetRefDatabase().getRefsByPrefix(R_TAGS)insteadSet<Ref>RefDatabase. 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 Ref Modifier and Type Method Description intRefComparator. compare(Ref o1, Ref o2)static intRefComparator. compareTo(Ref o1, String o2)Compare a reference to a name.static intRefComparator. compareTo(Ref o1, Ref o2)Compare two references by name.abstract RefRefDatabase. peel(Ref ref)Peel a possibly unpeeled reference by traversing the annotated tags.RefRepository. peel(Ref ref)Deprecated.usegetRefDatabase().peel(ref)instead.Method parameters in org.eclipse.jgit.lib with type arguments of type Ref Modifier and Type Method Description static RefRefDatabase. findRef(Map<String,Ref> map, String name)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 Ref Constructor Description RefUpdate(Ref ref)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 Constructor Description RefWriter(Collection<Ref> refs)Constructor for RefWriter.RefWriter(Map<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 StringMergeMessageFormatter. format(List<Ref> refsToMerge, Ref target)Construct the merge commit message.StringSquashMessageFormatter. format(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 StringMergeMessageFormatter. format(List<Ref> refsToMerge, Ref target)Construct the merge commit message. -
Uses of Ref in org.eclipse.jgit.revplot
Methods in org.eclipse.jgit.revplot that return Ref Modifier and Type Method Description RefPlotCommit. getRef(int nth)Get the nth Ref from this commit's ref list.Methods in org.eclipse.jgit.revplot with parameters of type Ref Modifier and Type Method Description protected abstract intAbstractPlotRenderer. drawLabel(int x, int y, Ref ref)Draw a decoration for the Ref ref at x,yMethod parameters in org.eclipse.jgit.revplot with type arguments of type Ref Modifier and Type Method Description voidPlotWalk. 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 Ref Modifier and Type Method Description static List<Ref>RevWalkUtils. findBranchesReachableFrom(RevCommit commit, RevWalk revWalk, Collection<Ref> refs)Find the list of branches a given commit is reachable from when following parents.static List<Ref>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.List<Ref>RevWalk. getMergedInto(RevCommit commit, Collection<Ref> refs)Determine the Refs into which a commit is merged.List<Ref>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 Ref Modifier and Type Method Description static List<Ref>RevWalkUtils. findBranchesReachableFrom(RevCommit commit, RevWalk revWalk, Collection<Ref> refs)Find the list of branches a given commit is reachable from when following parents.static List<Ref>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.List<Ref>RevWalk. getMergedInto(RevCommit commit, Collection<Ref> refs)Determine the Refs into which a commit is merged.List<Ref>RevWalk. getMergedInto(RevCommit commit, Collection<Ref> refs, ProgressMonitor monitor)Determine the Refs into which a commit is merged.booleanRevWalk. isMergedIntoAll(RevCommit commit, Collection<Ref> refs)Determine if acommitis merged into all of the givenrefs.booleanRevWalk. isMergedIntoAny(RevCommit commit, Collection<Ref> refs)Determine if acommitis merged into any of the givenrefs. -
Uses of Ref in org.eclipse.jgit.transport
Methods in org.eclipse.jgit.transport that return Ref Modifier and Type Method Description RefOperationResult. getAdvertisedRef(String name)Get a single advertised ref by name.RefBaseConnection. getRef(String name)Get a single advertised ref by name.RefConnection. getRef(String name)Get a single advertised ref by name.RefReceiveCommand. getRef()Get the ref, if this was advertised by the connection.Methods in org.eclipse.jgit.transport that return types with arguments of type Ref Modifier and Type Method Description Map<String,Ref>RefFilter. filter(Map<String,Ref> refs)Filters aMapof refs before it is advertised to the client.protected abstract Map<String,Ref>AbstractAdvertiseRefsHook. getAdvertisedRefs(Repository repository, RevWalk revWalk)Get the refs to advertise.Collection<Ref>OperationResult. getAdvertisedRefs()Get the complete list of refs advertised by the remote.Map<String,Ref>ReceivePack. getAdvertisedRefs()Get refs which were advertised to the client.Map<String,Ref>UploadPack. getAdvertisedRefs()Get refs which were advertised to the client.Collection<Ref>BaseConnection. getRefs()Get the complete list of refs advertised as available for fetching or pushing.Collection<Ref>Connection. getRefs()Get the complete list of refs advertised as available for fetching or pushing.Map<String,Ref>BaseConnection. getRefsMap()Get the complete map of refs advertised as available for fetching or pushing.Map<String,Ref>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 Ref Modifier and Type Method Description RefSpecRefSpec. expandFromDestination(Ref r)Expand this specification to exactly match a ref.RefSpecRefSpec. expandFromSource(Ref r)Expand this specification to exactly match a ref.voidBundleWriter. include(Ref r)Include a single ref (a name/object pair) in the bundle.booleanRefSpec. matchDestination(Ref r)Does this specification's destination description match the ref?booleanRefSpec. matchSource(Ref r)Does this specification's source description match the ref?Method parameters in org.eclipse.jgit.transport with type arguments of type Ref Modifier and Type Method Description protected voidBaseConnection. available(Map<String,Ref> all)Denote the list of refs available on the remote repository.protected voidBasePackFetchConnection. doFetch(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have, OutputStream outputStream)Execute common ancestor negotiation and fetch the objects.voidBasePackFetchConnection. fetch(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have)Fetch objects we don't have but that are reachable from advertised refs.voidBasePackFetchConnection. fetch(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have, OutputStream outputStream)Fetch objects we don't have but that are reachable from advertised refs.voidFetchConnection. fetch(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have)Fetch objects we don't have but that are reachable from advertised refs.voidFetchConnection. fetch(ProgressMonitor monitor, Collection<Ref> want, Set<ObjectId> have, OutputStream out)Fetch objects we don't have but that are reachable from advertised refs.Map<String,Ref>RefFilter. filter(Map<String,Ref> refs)Filters aMapof refs before it is advertised to the client.Set<ObjectId>RefAdvertiser. send(Collection<Ref> refs)Format an advertisement for the supplied refs.Set<ObjectId>RefAdvertiser. send(Map<String,Ref> refs)Deprecated.useRefAdvertiser.send(Collection)instead.voidReceivePack. setAdvertisedRefs(Map<String,Ref> allRefs, Set<ObjectId> additionalHaves)Set the refs advertised by this ReceivePack.voidUploadPack. setAdvertisedRefs(Map<String,Ref> allRefs)Set the refs advertised by this UploadPack.Constructors in org.eclipse.jgit.transport with parameters of type Ref Constructor Description RemoteRefUpdate(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 Ref Modifier and Type Class Description classRefList<T extends Ref>Specialized variant of an ArrayList to support aRefDatabase.static classRefList.Builder<T extends Ref>Builder to facilitate fast construction of an immutable RefList.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>
Collector<T,?,RefList<T>>RefList. toRefList(BinaryOperator<T> mergeFunction)Methods in org.eclipse.jgit.util that return Ref Modifier and Type Method Description RefRefMap. get(Object key)RefRefMap. put(String keyName, Ref value)RefRefMap. remove(Object key)Methods in org.eclipse.jgit.util that return types with arguments of type Ref Modifier and Type Method Description List<Ref>RefList. asList()Castthisas an immutable, standardList.Set<Map.Entry<String,Ref>>RefMap. entrySet()Iterator<Ref>RefList. iterator()static Collector<Ref,?,RefMap>RefMap. toRefMap(BinaryOperator<Ref> mergeFunction)Methods in org.eclipse.jgit.util with parameters of type Ref Modifier and Type Method Description voidRefList.Builder. addAll(Ref[] src, int off, int cnt)Add all items from a source array.RefRefMap. put(String keyName, Ref value)Method parameters in org.eclipse.jgit.util with type arguments of type Ref Modifier and Type Method Description static Collector<Ref,?,RefMap>RefMap. toRefMap(BinaryOperator<Ref> mergeFunction)Constructor parameters in org.eclipse.jgit.util with type arguments of type Ref Constructor Description RefMap(String prefix, RefList<? extends Ref> packed, RefList<? extends Ref> loose, RefList<? extends Ref> resolved)Construct a map to merge 3 collections together.
-