From 8ab9a49d8e555a7e7441d83fbf3e2cfc57c2b9b7 Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Mon, 15 Oct 2018 20:50:23 +0300 Subject: [PATCH] [git] do not trim trailing spaces from file names IDEA-193814, IDEA-199761 --- plugins/git4idea/src/git4idea/history/GitLogParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git4idea/src/git4idea/history/GitLogParser.java b/plugins/git4idea/src/git4idea/history/GitLogParser.java index 091138336b70..9a483bbbeac9 100644 --- a/plugins/git4idea/src/git4idea/history/GitLogParser.java +++ b/plugins/git4idea/src/git4idea/history/GitLogParser.java @@ -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; }