DiffChange

A single line-level entry in a diff hunk. Each DiffChange describes one line and its change type: unchanged context, an addition in the after blob, or a deletion from the before blob.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The 1-based line number in the after blob. This field is omitted for DELETE lines.

Link copied to clipboard

The 1-based line number in the before blob. This field is omitted for ADD lines.

Link copied to clipboard

The text content of the line, without the trailing newline.

Link copied to clipboard

The type of change for this line. Possible values:

Functions

Link copied to clipboard
inline fun copy(block: DiffChange.Builder.() -> Unit = {}): DiffChange
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String