Skip to content

Commit ecb9554

Browse files
committed
Small fix for git binary diff handling
Assisted-by: Cursor
1 parent ea90a0f commit ecb9554

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/filterdiff.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,9 @@ static int filterdiff (FILE *f, const char *patchname)
12271227
else if (!strncmp (line, "Binary files ", 13)) {
12281228
/* Binary files line - this is diff content, break to process */
12291229
break;
1230+
} else if (!strncmp (line, "GIT binary patch", 16)) {
1231+
/* GIT binary patch line - this is diff content, break to process */
1232+
break;
12301233
} else if (strncmp (line, "old mode ", 9) &&
12311234
strncmp (line, "new mode ", 9) &&
12321235
strncmp (line, "deleted file mode ", 18) &&

0 commit comments

Comments
 (0)