Table of Contents

Constructor PatchHunk

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

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

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

public PatchHunk(string? Header, IReadOnlyList<PatchHunkLine> Lines, bool IsEndOfFile)

Parameters

Header string?

Optional context text used to locate the hunk.

Lines IReadOnlyList<PatchHunkLine>

The ordered context, added, and removed lines.

IsEndOfFile bool

Whether the hunk explicitly appends or preserves an ending newline.