Table of Contents

Class PatchHunk

Namespace
Oscova.Agents.Toolsets
Assembly
Oscova.Agents.dll

Represents one patch hunk with optional context header and line edits.

public sealed record PatchHunk : IEquatable<PatchHunk>

Inheritance

Implements

Inherited Members

Constructors

PatchHunk(string?, IReadOnlyList<PatchHunkLine>, bool)

Represents one patch hunk with optional context header and line edits.

Properties

Header

Optional context text used to locate the hunk.

IsEndOfFile

Whether the hunk explicitly appends or preserves an ending newline.

Lines

The ordered context, added, and removed lines.