Skip to content

Commit 263f33c

Browse files
committed
add flag on missing cases
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 7ffb5b4 commit 263f33c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/gitdiff/gitdiff.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,7 @@ func parseHunks(curFile *DiffFile, maxLines, maxLineCharacters int, input *bufio
936936
for {
937937
for isFragment {
938938
curFile.IsIncomplete = true
939+
curFile.IsIncompleteLineTooLong = true
939940
_, isFragment, err = input.ReadLine()
940941
if err != nil {
941942
// Now by the definition of ReadLine this cannot be io.EOF
@@ -1063,6 +1064,7 @@ func parseHunks(curFile *DiffFile, maxLines, maxLineCharacters int, input *bufio
10631064
line := string(lineBytes)
10641065
if isFragment {
10651066
curFile.IsIncomplete = true
1067+
curFile.IsIncompleteLineTooLong = true
10661068
for isFragment {
10671069
lineBytes, isFragment, err = input.ReadLine()
10681070
if err != nil {

0 commit comments

Comments
 (0)