Record Class Commit
java.lang.Object
java.lang.Record
io.github.joke.conventionalversion.calc.Commit
- Record Components:
sha- the commit itself, so a package's range can be sliced at its own base commitmessage- the raw commit message, header and bodypaths- repository-relative paths the commit changed, against its first parent
One commit in the analysed range, with the paths it touched.
The paths decide which packages the commit counts for: release-please attributes a
commit strictly by path, so a commit touching only a package's files bumps only that package.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.paths()Returns the value of thepathsrecord component.sha()Returns the value of thesharecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Commit
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
sha
-
message
-
paths
-