Skip to content

Hunk

🛈 DocStrings

A hunk: a run of changed lines with context.

Source code in src/acptui/protocol/diff.py
@dataclass
class Hunk:
    """A hunk: a run of changed lines with context."""

    old_start: int
    new_start: int
    header: str = ""
    lines: list[DiffLine] = field(default_factory=list)

:fa-brands-github: Show source on GitHub