Package org.projectnessie.versioned
Interface GetNamedRefsParams.RetrieveOptions
- Enclosing interface:
GetNamedRefsParams
@Immutable
public static interface GetNamedRefsParams.RetrieveOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GetNamedRefsParams.RetrieveOptionsConstant to retrieve only the HEAD commit hash.static final GetNamedRefsParams.RetrieveOptionsConstant to retrieve the HEAD commit hash, the commit-meta of the HEAD commit, the common-ancestor to the base reference and the commits ahead and behind relative to the base reference.static final GetNamedRefsParams.RetrieveOptionsConstant to retrieve the HEAD commit hash plus the commit-meta of the HEAD commit.static final GetNamedRefsParams.RetrieveOptionsConstant to not retrieve any information (omit tags or branches). -
Method Summary
Modifier and TypeMethodDescriptionstatic org.projectnessie.versioned.ImmutableRetrieveOptions.Builderbuilder()default booleanWhether to computeReferenceInfo.getAheadBehind(), requires a non-nullGetNamedRefsParams.getBaseReference(), defaults tofalse.default booleanWhether to identify the common ancestor on the default branch, defaults tofalse.default booleanWhether to retrieve the reference information at all, defaults totrue.default booleanWhether to retrieve the commit-meta information of each reference's HEAD commit inReferenceInfo.getHeadCommitMeta(), defaults tofalse.
-
Field Details
-
OMIT
Constant to not retrieve any information (omit tags or branches). -
BARE
Constant to retrieve only the HEAD commit hash. -
COMMIT_META
Constant to retrieve the HEAD commit hash plus the commit-meta of the HEAD commit. -
BASE_REFERENCE_RELATED_AND_COMMIT_META
Constant to retrieve the HEAD commit hash, the commit-meta of the HEAD commit, the common-ancestor to the base reference and the commits ahead and behind relative to the base reference.
-
-
Method Details
-
builder
static org.projectnessie.versioned.ImmutableRetrieveOptions.Builder builder() -
isRetrieve
@Default default boolean isRetrieve()Whether to retrieve the reference information at all, defaults totrue. -
isComputeAheadBehind
@Default default boolean isComputeAheadBehind()Whether to computeReferenceInfo.getAheadBehind(), requires a non-nullGetNamedRefsParams.getBaseReference(), defaults tofalse. -
isComputeCommonAncestor
@Default default boolean isComputeCommonAncestor()Whether to identify the common ancestor on the default branch, defaults tofalse. -
isRetrieveCommitMetaForHead
@Default default boolean isRetrieveCommitMetaForHead()Whether to retrieve the commit-meta information of each reference's HEAD commit inReferenceInfo.getHeadCommitMeta(), defaults tofalse.
-