Ignore '\ No newline at end of file' in diff

This commit is contained in:
René Pfeuffer
2019-09-23 17:25:01 +02:00
parent eb1812dea6
commit 1c922d637e
2 changed files with 35 additions and 1 deletions

View File

@@ -79,7 +79,9 @@ final class GitHunkParser {
++oldLineCounter;
break;
default:
throw new IllegalStateException("cannot handle diff line: " + line);
if (!line.equals("\\ No newline at end of file")) {
throw new IllegalStateException("cannot handle diff line: " + line);
}
}
}