diff --git a/src/git/parsers/diffParser.ts b/src/git/parsers/diffParser.ts index e1e238c..4850aa8 100644 --- a/src/git/parsers/diffParser.ts +++ b/src/git/parsers/diffParser.ts @@ -23,8 +23,8 @@ export function parseGitFileDiff(data: string, includeContents = false): GitDiff // Skip header let i = -1; - while (i < lines.length) { - if (lines[++i].startsWith('@@')) { + while (++i < lines.length) { + if (lines[i].startsWith('@@')) { break; } }