Record Class FinishOptions
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.gitflow.FinishOptions
- Record Components:
keepBranch- keep the finished branch instead of deleting ittagMessage- message of the version tag for releases and hotfixes;nullfor the defaultsquash- combine all commits of the branch into one commit when merging it (features into the development branch, releases and hotfixes into the production branch). The back-merge of a release or hotfix into development is always a normal merge. A squash merge cannot be resumed: on conflicts nothing is changed (FinishResult.Outcome.CONFLICTS_ROLLED_BACK).squashMessage- message of the squash commit;nullor blank for the default
-
Constructor Summary
ConstructorsConstructorDescriptionFinishOptions(boolean keepBranch, String tagMessage) Without squashing.FinishOptions(boolean keepBranch, String tagMessage, boolean squash, String squashMessage) Creates an instance of aFinishOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FinishOptionsdefaults()Delete the branch after the merge, default tag message, no squash.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thekeepBranchrecord component.booleansquash()Returns the value of thesquashrecord component.Returns the value of thesquashMessagerecord component.Returns the value of thetagMessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FinishOptions
Without squashing. -
FinishOptions
Creates an instance of aFinishOptionsrecord class.- Parameters:
keepBranch- the value for thekeepBranchrecord componenttagMessage- the value for thetagMessagerecord componentsquash- the value for thesquashrecord componentsquashMessage- the value for thesquashMessagerecord component
-
-
Method Details
-
defaults
Delete the branch after the merge, default tag message, no squash. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
keepBranch
public boolean keepBranch()Returns the value of thekeepBranchrecord component.- Returns:
- the value of the
keepBranchrecord component
-
tagMessage
Returns the value of thetagMessagerecord component.- Returns:
- the value of the
tagMessagerecord component
-
squash
public boolean squash()Returns the value of thesquashrecord component.- Returns:
- the value of the
squashrecord component
-
squashMessage
Returns the value of thesquashMessagerecord component.- Returns:
- the value of the
squashMessagerecord component
-