MCPcopy Index your code
hub / github.com/Waishnav/devspace / isTopLevelHeader

Function isTopLevelHeader

src/apply-patch.ts:173–181  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

171}
172
173function isTopLevelHeader(line: string): boolean {
174 const trimmed = line.trim();
175 return (
176 trimmed.startsWith("*** Add File: ") ||
177 trimmed.startsWith("*** Delete File: ") ||
178 trimmed.startsWith("*** Update File: ") ||
179 trimmed.startsWith("*** Environment ID: ")
180 );
181}
182
183function isInside(root: string, path: string): boolean {
184 const rel = relative(root, path);

Callers 1

parsePatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected