public static class ObjectIdRef.Unpeeled extends ObjectIdRef
ObjectIdRef.PeeledNonTag, ObjectIdRef.PeeledTag, ObjectIdRef.Unpeeled
Ref.Storage
UNDEFINED_UPDATE_INDEX
Constructor and Description |
---|
Unpeeled(Ref.Storage st,
String name,
ObjectId id)
Create a new ref pairing.
|
Unpeeled(Ref.Storage st,
String name,
ObjectId id,
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, toString
public Unpeeled(@NonNull Ref.Storage st, @NonNull String name, @Nullable ObjectId id)
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.public Unpeeled(@NonNull Ref.Storage st, @NonNull String name, @Nullable ObjectId id, 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.updateIndex
- number increasing with each update to the reference.@Nullable public ObjectId getPeeledObjectId()
Ref
ref^{}
(the ref peeled to commit).null
if this ref
does not refer to an annotated tag.public boolean isPeeled()
Ref
Copyright © 2019 Eclipse JGit Project. All rights reserved.