Modifier and Type | Method and Description |
---|---|
Ref |
ResetCommand.call()
Executes the
Reset command. |
Ref |
CreateBranchCommand.call() |
Ref |
RenameBranchCommand.call() |
Ref |
TagCommand.call()
Executes the
tag command with all the options and parameters
collected by the setter methods of this class. |
Ref |
CheckoutCommand.call() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Ref> |
ListBranchCommand.call() |
java.util.List<Ref> |
ListTagCommand.call() |
java.util.Collection<Ref> |
LsRemoteCommand.call()
Executes the
LsRemote command with all the options and parameters
collected by the setter methods (e.g. |
java.util.List<Ref> |
CherryPickResult.getCherryPickedRefs() |
java.util.List<Ref> |
RevertCommand.getRevertedRefs() |
Modifier and Type | Method and Description |
---|---|
PushCommand |
PushCommand.add(Ref ref)
Add a reference to push.
|
CherryPickCommand |
CherryPickCommand.include(Ref commit) |
MergeCommand |
MergeCommand.include(Ref commit) |
RevertCommand |
RevertCommand.include(Ref commit) |
Constructor and Description |
---|
CherryPickResult(RevCommit newHead,
java.util.List<Ref> cherryPickedRefs) |
Modifier and Type | Method and Description |
---|---|
Ref |
ConcurrentRefUpdateException.getRef() |
Constructor and Description |
---|
ConcurrentRefUpdateException(java.lang.String message,
Ref ref,
RefUpdate.Result rc) |
ConcurrentRefUpdateException(java.lang.String message,
Ref ref,
RefUpdate.Result rc,
java.lang.Throwable cause) |
Modifier and Type | Class and 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 another
Ref . |
Modifier and Type | Method and Description |
---|---|
Ref |
SymbolicRef.getLeaf() |
Ref |
ObjectIdRef.getLeaf() |
Ref |
Ref.getLeaf()
Traverse target references until
isSymbolic() is false. |
Ref |
RefUpdate.getRef() |
abstract Ref |
RefDatabase.getRef(java.lang.String name)
Read a single reference.
|
Ref |
Repository.getRef(java.lang.String name)
Get a ref by name.
|
Ref |
SymbolicRef.getTarget() |
Ref |
ObjectIdRef.getTarget() |
Ref |
Ref.getTarget()
Get the reference this reference points to, or
this . |
abstract Ref |
RefDatabase.peel(Ref ref)
Peel a possibly unpeeled reference by traversing the annotated tags.
|
Ref |
Repository.peel(Ref ref)
Peel a possibly unpeeled reference to an annotated tag.
|
Modifier and Type | Method and Description |
---|---|
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() |
java.util.Map<AnyObjectId,java.util.Set<Ref>> |
Repository.getAllRefsByPeeledObjectId() |
abstract java.util.Map<java.lang.String,Ref> |
RefDatabase.getRefs(java.lang.String prefix)
Get a section of the reference namespace.
|
java.util.Map<java.lang.String,Ref> |
Repository.getTags() |
static java.util.Collection<Ref> |
RefComparator.sort(java.util.Collection<Ref> refs)
Sorts the collection of refs, returning a new collection.
|
Modifier and Type | Method and Description |
---|---|
int |
RefComparator.compare(Ref o1,
Ref o2) |
static int |
RefComparator.compareTo(Ref o1,
Ref o2)
Compare two references by name.
|
static int |
RefComparator.compareTo(Ref o1,
java.lang.String o2)
Compare a reference to a name.
|
abstract Ref |
RefDatabase.peel(Ref ref)
Peel a possibly unpeeled reference by traversing the annotated tags.
|
Ref |
Repository.peel(Ref ref)
Peel a possibly unpeeled reference to an annotated tag.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<Ref> |
RefComparator.sort(java.util.Collection<Ref> refs)
Sorts the collection of refs, returning a new collection.
|
Constructor and Description |
---|
RefUpdate(Ref ref)
Construct a new update operation for the reference.
|
SymbolicRef(java.lang.String refName,
Ref target)
Create a new ref pairing.
|
Constructor and Description |
---|
RefWriter(java.util.Collection<Ref> refs) |
RefWriter(java.util.Map<java.lang.String,Ref> refs) |
RefWriter(RefList<Ref> refs) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
MergeMessageFormatter.format(java.util.List<Ref> refsToMerge,
Ref target)
Construct the merge commit message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
MergeMessageFormatter.format(java.util.List<Ref> refsToMerge,
Ref target)
Construct the merge commit message.
|
Modifier and Type | Method and Description |
---|---|
Ref |
PlotCommit.getRef(int nth)
Get the nth Ref from this commit's ref list.
|
Modifier and Type | Method and Description |
---|---|
protected abstract int |
AbstractPlotRenderer.drawLabel(int x,
int y,
Ref ref)
Draw a decoration for the Ref ref at x,y
|
Modifier and Type | Method and Description |
---|---|
void |
PlotWalk.addAdditionalRefs(java.lang.Iterable<Ref> refs)
Add additional refs to the walk
|
Modifier and Type | Method and Description |
---|---|
Ref |
DfsRefDatabase.RefCache.get(java.lang.String name)
Find a reference by name.
|
Ref |
DfsRefDatabase.getRef(java.lang.String needle) |
Ref |
DfsRefDatabase.peel(Ref ref) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Ref> |
DfsRefDatabase.getAdditionalRefs() |
java.util.Map<java.lang.String,Ref> |
DfsRefDatabase.getRefs(java.lang.String prefix) |
Modifier and Type | Method and Description |
---|---|
protected void |
DfsRefDatabase.cachePeeledState(Ref oldLeaf,
Ref newLeaf)
Update the cached peeled state of a reference
|
protected abstract boolean |
DfsRefDatabase.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.
|
Ref |
DfsRefDatabase.peel(Ref ref) |
DfsRefDatabase.RefCache |
DfsRefDatabase.RefCache.put(Ref ref)
Obtain a modified copy of the cache with a ref stored.
|
Constructor and Description |
---|
DfsRefDatabase.RefCache(RefList<Ref> ids,
RefList<Ref> sym)
Initialize a new reference cache.
|
DfsRefDatabase.RefCache(RefList<Ref> ids,
RefList<Ref> sym)
Initialize a new reference cache.
|
Modifier and Type | Method and Description |
---|---|
Ref |
RefDirectory.getRef(java.lang.String needle) |
Ref |
RefDirectory.peel(Ref ref) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Ref> |
RefDirectory.getAdditionalRefs() |
java.util.Map<java.lang.String,Ref> |
RefDirectory.getRefs(java.lang.String prefix) |
Modifier and Type | Method and Description |
---|---|
Ref |
RefDirectory.peel(Ref ref) |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,Ref> |
BaseReceivePack.refs
The refs we advertised as existing at the start of the connection.
|
Modifier and Type | Method and Description |
---|---|
Ref |
OperationResult.getAdvertisedRef(java.lang.String name)
Get a single advertised ref by name.
|
Ref |
ReceiveCommand.getRef() |
Ref |
Connection.getRef(java.lang.String name)
Get a single advertised ref by name.
|
Ref |
BaseConnection.getRef(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,Ref> |
RefFilter.filter(java.util.Map<java.lang.String,Ref> refs)
Filters a
Map of refs before it is advertised to the client. |
protected java.util.Map<java.lang.String,Ref> |
BaseReceivePack.getAdvertisedOrDefaultRefs() |
java.util.Map<java.lang.String,Ref> |
UploadPack.getAdvertisedRefs()
Get refs which were advertised to the client.
|
java.util.Collection<Ref> |
OperationResult.getAdvertisedRefs()
Get the complete list of refs advertised by the remote.
|
java.util.Map<java.lang.String,Ref> |
BaseReceivePack.getAdvertisedRefs()
Get refs which were advertised to the client.
|
protected abstract java.util.Map<java.lang.String,Ref> |
AbstractAdvertiseRefsHook.getAdvertisedRefs(Repository repository,
RevWalk revWalk)
Get the refs to advertise.
|
java.util.Collection<Ref> |
Connection.getRefs()
Get the complete list of refs advertised as available for fetching or
pushing.
|
java.util.Collection<Ref> |
BaseConnection.getRefs() |
java.util.Map<java.lang.String,Ref> |
Connection.getRefsMap()
Get the complete map of refs advertised as available for fetching or
pushing.
|
java.util.Map<java.lang.String,Ref> |
BaseConnection.getRefsMap() |
Modifier and Type | Method and Description |
---|---|
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.
|
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?
|
Modifier and Type | Method and Description |
---|---|
protected void |
BaseConnection.available(java.util.Map<java.lang.String,Ref> all)
Denote the list of refs available on the remote repository.
|
protected void |
BasePackFetchConnection.doFetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have)
Execute common ancestor negotiation and fetch the objects.
|
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 |
BasePackFetchConnection.fetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have) |
java.util.Map<java.lang.String,Ref> |
RefFilter.filter(java.util.Map<java.lang.String,Ref> refs)
Filters a
Map of refs before it is advertised to the client. |
java.util.Set<ObjectId> |
RefAdvertiser.send(java.util.Map<java.lang.String,Ref> refs)
Format an advertisement for the supplied refs.
|
void |
UploadPack.setAdvertisedRefs(java.util.Map<java.lang.String,Ref> allRefs)
Set the refs advertised by this UploadPack.
|
void |
BaseReceivePack.setAdvertisedRefs(java.util.Map<java.lang.String,Ref> allRefs,
java.util.Set<ObjectId> additionalHaves)
Set the refs advertised by this ReceivePack.
|
Constructor and 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.
|
Modifier and Type | Class and Description |
---|---|
class |
RefList<T extends Ref>
Specialized variant of an ArrayList to support a
RefDatabase . |
static class |
RefList.Builder<T extends Ref>
Builder to facilitate fast construction of an immutable RefList.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Ref> |
RefList.emptyList() |
Modifier and Type | Method and Description |
---|---|
Ref |
RefMap.get(java.lang.Object key) |
Ref |
RefMap.put(java.lang.String keyName,
Ref value) |
Ref |
RefMap.remove(java.lang.Object key) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Ref> |
RefList.asList() |
java.util.Set<java.util.Map.Entry<java.lang.String,Ref>> |
RefMap.entrySet() |
java.util.Iterator<Ref> |
RefList.iterator() |
Modifier and Type | Method and 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) |
Constructor and 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.
|
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.
|
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.
|
Copyright © 2012. All Rights Reserved.