Record Class BlameOptions
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.git.api.BlameOptions
- Record Components:
ignoreWhitespace- changes of white space only are not changes of a line (likegit blame -w)ignoreRevisions- commits (full or abbreviated ids; the ones this repository does not have are skipped) whose changes are not to be blamed: the lines they changed go to the commit before (likegit blame --ignore-rev, for example the ids in the file.git-blame-ignore-revs)
What a blame is to ignore (feature 47).
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBlameOptions(boolean ignoreWhitespace, List<String> ignoreRevisions) Creates an instance of aBlameOptionsrecord class. -
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.Returns the value of theignoreRevisionsrecord component.booleanReturns the value of theignoreWhitespacerecord component.parseIgnoreRevs(String fileText) The ids in the text of a.git-blame-ignore-revsfile: one per line,#starts a comment, blank lines are skipped.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
Everything counts.
-
-
Constructor Details
-
BlameOptions
Creates an instance of aBlameOptionsrecord class.- Parameters:
ignoreWhitespace- the value for theignoreWhitespacerecord componentignoreRevisions- the value for theignoreRevisionsrecord component
-
-
Method Details
-
parseIgnoreRevs
The ids in the text of a.git-blame-ignore-revsfile: one per line,#starts a comment, blank lines are skipped. -
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 '=='. -
ignoreWhitespace
public boolean ignoreWhitespace()Returns the value of theignoreWhitespacerecord component.- Returns:
- the value of the
ignoreWhitespacerecord component
-
ignoreRevisions
Returns the value of theignoreRevisionsrecord component.- Returns:
- the value of the
ignoreRevisionsrecord component
-