Package org.projectnessie.versioned
Interface GetNamedRefsParams.RetrieveOptions
-
- Enclosing interface:
- GetNamedRefsParams
@Immutable public static interface GetNamedRefsParams.RetrieveOptions
-
-
Field Summary
Fields Modifier and Type Field Description static GetNamedRefsParams.RetrieveOptionsBAREConstant to retrieve only the HEAD commit hash.static GetNamedRefsParams.RetrieveOptionsBASE_REFERENCE_RELATED_AND_COMMIT_METAConstant 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 GetNamedRefsParams.RetrieveOptionsCOMMIT_METAConstant to retrieve the HEAD commit hash plus the commit-meta of the HEAD commit.static GetNamedRefsParams.RetrieveOptionsOMITConstant to not retrieve any information (omit tags or branches).
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static org.projectnessie.versioned.ImmutableRetrieveOptions.Builderbuilder()default booleanisComputeAheadBehind()Whether to computeReferenceInfo.getAheadBehind(), requires a non-nullGetNamedRefsParams.getBaseReference(), defaults tofalse.default booleanisComputeCommonAncestor()Whether to identify the common ancestor on the default branch, defaults tofalse.default booleanisRetrieve()Whether to retrieve the reference information at all, defaults totrue.default booleanisRetrieveCommitMetaForHead()Whether to retrieve the commit-meta information of each reference's HEAD commit inReferenceInfo.getHeadCommitMeta(), defaults tofalse.
-
-
-
Field Detail
-
OMIT
static final GetNamedRefsParams.RetrieveOptions OMIT
Constant to not retrieve any information (omit tags or branches).
-
BARE
static final GetNamedRefsParams.RetrieveOptions BARE
Constant to retrieve only the HEAD commit hash.
-
COMMIT_META
static final GetNamedRefsParams.RetrieveOptions COMMIT_META
Constant to retrieve the HEAD commit hash plus the commit-meta of the HEAD commit.
-
BASE_REFERENCE_RELATED_AND_COMMIT_META
static final GetNamedRefsParams.RetrieveOptions 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 Detail
-
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.
-
-