List<CommitChange> (@NotNull GitRepository repository, @NotNull Collection<? extends CommitChange> changes, @NotNull Set<CommitChange> alreadyProcessed, @NotNull List<? super VcsException> exceptions) { if (SystemInfo.isFileSystemCaseSensitive) return Collections.emptyList(); List<CommitChange> caseOnlyRenames = filter(changes, change -> !alreadyProcessed.contains(change) && isCaseOnlyRename(change)); if (caseOnlyRenames.isEmpty()) return Collections.emptyList(); LOG.info("Committing case only rename: " + getLogString(repository.getRoot().getPath(), caseOnlyRenames) + " in " + getShortRepositoryName(repository)); List<FilePath> pathsToAdd = map(caseOnlyRenames, it -> it.afterPath); List<FilePath> pathsToDelete = map(caseOnlyRenames, it -> it.beforePath); LOG.debug(String.format("Updating index for case only changes: added: %s,\n removed: %s", pathsToAdd, pathsToDelete)); updateIndex(myProject, repository.getRoot(), pathsToAdd, pathsToDelete, exceptions); return caseOnlyRenames; }