Package com.atlassian.bitbucket.scm
Class CreateCommandParameters
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.scm.AbstractCommandParameters
com.atlassian.bitbucket.scm.CreateCommandParameters
Parameters describing how a new repository should be created by the SCM.
- Since:
- 7.5
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the default branch that should be set when the repository is created.Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Method Details
-
getDefaultBranch
Retrieves the default branch that should be set when the repository is created. If no default is specified, the SCM will use its own. What that default is is not documented here because it is SCM-specific, and may change between SCM releases.- Returns:
- the default branch to set, or
null
to use the SCM's default branch
-