diff --git a/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPathsIndex.java b/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPathsIndex.java index aebfba3c30b5..899713a03e5b 100644 --- a/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPathsIndex.java +++ b/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPathsIndex.java @@ -305,9 +305,15 @@ public class VcsLogPathsIndex extends VcsLogFullDetailsIndex beforeData = fillDataWithNulls(result, parent, beforeId); - beforeData.add(new ChangeData(ChangeKind.RENAMED_FROM, afterId)); + if (beforeId == afterId && !SystemInfo.isFileSystemCaseSensitive) { + // case only rename in case insensitive file system + // since ids for before and after paths are the same we just treating this rename as a modification + data.add(new ChangeData(ChangeKind.MODIFIED, -1)); + } else { + data.add(new ChangeData(ChangeKind.RENAMED_TO, beforeId)); + List beforeData = fillDataWithNulls(result, parent, beforeId); + beforeData.add(new ChangeData(ChangeKind.RENAMED_FROM, afterId)); + } } }