|
@ -23,8 +23,8 @@ export function parseGitFileDiff(data: string, includeContents = false): GitDiff |
|
|
|
|
|
|
|
|
// Skip header
|
|
|
// Skip header
|
|
|
let i = -1; |
|
|
let i = -1; |
|
|
while (i < lines.length) { |
|
|
|
|
|
if (lines[++i].startsWith('@@')) { |
|
|
|
|
|
|
|
|
while (++i < lines.length) { |
|
|
|
|
|
if (lines[i].startsWith('@@')) { |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|