public static class ObjectIdRef.PeeledTag extends ObjectIdRef
ObjectIdRef.PeeledNonTag, ObjectIdRef.PeeledTag, ObjectIdRef.UnpeeledRef.StorageUNDEFINED_UPDATE_INDEX| Constructor and Description |
|---|
PeeledTag(Ref.Storage st,
String name,
ObjectId id,
ObjectId p)
Create a new ref pairing.
|
PeeledTag(Ref.Storage st,
String name,
ObjectId id,
ObjectId p,
long updateIndex)
Create a new ref pairing with update index.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectId |
getPeeledObjectId()
Cached value of
ref^{} (the ref peeled to commit). |
boolean |
isPeeled()
Whether the Ref represents a peeled tag.
|
getLeaf, getName, getObjectId, getStorage, getTarget, getUpdateIndex, isSymbolic, toStringpublic PeeledTag(@NonNull Ref.Storage st, @NonNull String name, @Nullable ObjectId id, @NonNull ObjectId p)
st - method used to store this ref.name - name of this ref.id - current value of the ref.p - the first non-tag object that tag id points to.public PeeledTag(@NonNull Ref.Storage st, @NonNull String name, @Nullable ObjectId id, @NonNull ObjectId p, long updateIndex)
st - method used to store this ref.name - name of this ref.id - current value of the ref. May be null to indicate
a ref that does not exist yet.p - the first non-tag object that tag id points to.updateIndex - number increasing with each update to the reference.@NonNull public ObjectId getPeeledObjectId()
Refref^{} (the ref peeled to commit).null if this ref
does not refer to an annotated tag.public boolean isPeeled()
RefCopyright © 2019 Eclipse JGit Project. All rights reserved.