MCPcopy Index your code
hub / github.com/kpdecker/jsdiff / isGitDiffHeader

Function isGitDiffHeader

src/patch/parse.ts:26–28  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

24
25 // Matches `diff --git ...` lines specifically.
26 function isGitDiffHeader(line: string): boolean {
27 return (/^diff --git /).test(line);
28 }
29
30 // Matches lines that denote the start of a new diff's section in a
31 // multi-file patch: `diff --git ...`, `Index: ...`, or `diff -r ...`.

Callers 2

isDiffHeaderFunction · 0.85
parseIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected