MCPcopy Create free account
hub / github.com/HKUDS/OpenSpace / PatchHunk

Class PatchHunk

openspace/skill_engine/patch.py:73–79  ·  view source on GitHub ↗

One file-level operation inside a patch.

Source from the content-addressed store, hash-verified

71
72@dataclass
73class PatchHunk:
74 """One file-level operation inside a patch."""
75 type: str # "add" | "update" | "delete"
76 path: str
77 contents: str = "" # type="add": new file body
78 move_path: Optional[str] = None # type="update": optional rename target
79 chunks: List[UpdateChunk] = field(default_factory=list)
80
81
82@dataclass

Callers 1

parse_patchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected