[git] do not trim trailing spaces from file names

IDEA-193814, IDEA-199761
This commit is contained in:
Julia Beliaeva
2018-10-15 20:51:51 +03:00
parent d996441051
commit 8ab9a49d8e
@@ -402,7 +402,7 @@ public class GitLogParser {
}
private boolean atLineEnd(@NotNull CharSequence line, int offset) {
while (offset < line.length() && (line.charAt(offset) == '\t' || line.charAt(offset) == ' ')) offset++;
while (offset < line.length() && (line.charAt(offset) == '\t')) offset++;
if (offset == line.length() || (line.charAt(offset) == '\n' || line.charAt(offset) == '\r')) return true;
return false;
}