org.eclipse.jgit.lib.Ref that points directly at an
org.eclipse.jgit.lib.ObjectId .
| Modifier and Type | Class and Description |
|---|---|
| public static class | ObjectIdRef.
A reference to a non-tag object coming from a cached source. |
| public static class | ObjectIdRef.
An annotated tag whose peeled object has been cached. |
| public static class | ObjectIdRef.
Any reference whose peeled value is not yet known. |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final ObjectId | |
| private final Ref. | |
| private final long |
| Access | Constructor and Description |
|---|---|
| protected | ObjectIdRef(Ref.
method used to store this ref. st,name of this ref. name, ObjectId current value of the ref. May be id, long null to indicate a
ref that does not exist yet.number that increases with each ref update. Set to -1 if the
storage doesn't support versioning. updateIndex)Create a new ref pairing. |
| Modifier and Type | Method and Description |
|---|---|
| public Ref | getLeaf()
Implements org. Traverse target references until |
| public String | getName()
Implements org. What this ref is called within the repository. |
| public ObjectId | |
| public Ref. | |
| public Ref | getTarget()
Implements org. Get the reference this reference points to, or |
| public long | getUpdateIndex()
Overrides default org. Indicator of the relative order between updates of a specific reference name. |
| public boolean | isSymbolic()
Implements org. Test if this reference is a symbolic reference. |
| public String |
| name | back to summary |
|---|---|
| private final String name | |
| objectId | back to summary |
|---|---|
| private final ObjectId objectId | |
| storage | back to summary |
|---|---|
| private final Ref. | |
| updateIndex | back to summary |
|---|---|
| private final long updateIndex | |
| ObjectIdRef | back to summary |
|---|---|
| protected ObjectIdRef(Ref. Create a new ref pairing. | |
| getLeaf | back to summary |
|---|---|
| public Ref getLeaf() Implements org. Doc from org. Traverse target references until
If
If This method is effectively return isSymbolic() ? getTarget().getLeaf() : this; | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. What this ref is called within the repository. | |
| getObjectId | back to summary |
|---|---|
| public ObjectId getObjectId() Implements org. Doc from org. Cached value of this ref. | |
| getStorage | back to summary |
|---|---|
| public Ref. Implements org. Doc from org. How was this ref obtained? The current storage model of a Ref may influence how the ref must be updated or deleted from the repository. | |
| getTarget | back to summary |
|---|---|
| public Ref getTarget() Implements org. Doc from org. Get the reference this reference points to, or
If
If this is a leaf level reference that contains its own ObjectId,this
method returns | |
| getUpdateIndex | back to summary |
|---|---|
| public long getUpdateIndex() Overrides default org. Doc from org. Indicator of the relative order between updates of a specific reference name. A number that increases when a reference is updated. With symbolic references, the update index refers to updates of the symbolic reference itself. For example, if HEAD points to refs/heads/master, then the update index for exactRef("HEAD") will only increase when HEAD changes to point to another ref, regardless of how many times refs/heads/master is updated.
Should not be used unless the
| |
| isSymbolic | back to summary |
|---|---|
| public boolean isSymbolic() Implements org. Doc from org. Test if this reference is a symbolic reference.
A symbolic reference does not have its own
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Access | Constructor and Description |
|---|---|
| public | PeeledNonTag(Ref.
method used to store this ref. st,name of this ref. name, ObjectId current value of the ref. May be id)null to indicate
a ref that does not exist yet.Create a new ref pairing. |
| public | PeeledNonTag(Ref.
method used to store this ref. st,name of this ref. name, ObjectId current value of the ref. May be id, long null to indicate
a ref that does not exist yet.number increasing with each update to the reference. updateIndex)Create a new ref pairing with update index. |
| Modifier and Type | Method and Description |
|---|---|
| public ObjectId | getPeeledObjectId()
Implements org. Cached value of |
| public boolean |
| PeeledNonTag | back to summary |
|---|---|
| public PeeledNonTag(Ref. Create a new ref pairing. | |
| PeeledNonTag | back to summary |
|---|---|
| public PeeledNonTag(Ref. Create a new ref pairing with update index. | |
| getPeeledObjectId | back to summary |
|---|---|
| public ObjectId getPeeledObjectId() Implements org. Doc from org. Cached value of | |
| isPeeled | back to summary |
|---|---|
| public boolean isPeeled() Implements org. Doc from org. Whether the Ref represents a peeled tag.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectId |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PeeledTag(Ref.
method used to store this ref. st,name of this ref. name, ObjectId current value of the ref. May be id, ObjectId null to indicate
a ref that does not exist yet.the first non-tag object that tag p, long id points to.number increasing with each update to the reference. updateIndex)Create a new ref pairing with update index. |
| Modifier and Type | Method and Description |
|---|---|
| public ObjectId | getPeeledObjectId()
Implements org. Cached value of |
| public boolean |
| peeledObjectId | back to summary |
|---|---|
| private final ObjectId peeledObjectId | |
| PeeledTag | back to summary |
|---|---|
| public PeeledTag(Ref. Create a new ref pairing. | |
| PeeledTag | back to summary |
|---|---|
| public PeeledTag(Ref. Create a new ref pairing with update index.
| |
| getPeeledObjectId | back to summary |
|---|---|
| public ObjectId getPeeledObjectId() Implements org. Doc from org. Cached value of | |
| isPeeled | back to summary |
|---|---|
| public boolean isPeeled() Implements org. Doc from org. Whether the Ref represents a peeled tag.
| |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ObjectId | getPeeledObjectId()
Implements org. Cached value of |
| public boolean |
| Unpeeled | back to summary |
|---|---|
| public Unpeeled(Ref. Create a new ref pairing. | |
| Unpeeled | back to summary |
|---|---|
| public Unpeeled(Ref. Create a new ref pairing with update index. | |
| getPeeledObjectId | back to summary |
|---|---|
| public ObjectId getPeeledObjectId() Implements org. Doc from org. Cached value of | |
| isPeeled | back to summary |
|---|---|
| public boolean isPeeled() Implements org. Doc from org. Whether the Ref represents a peeled tag.
| |