diff --git a/platform/vcs-log/impl/src/com/intellij/vcs/log/history/FileHistory.kt b/platform/vcs-log/impl/src/com/intellij/vcs/log/history/FileHistory.kt index 00b0566617ac..ece5773fe2d3 100644 --- a/platform/vcs-log/impl/src/com/intellij/vcs/log/history/FileHistory.kt +++ b/platform/vcs-log/impl/src/com/intellij/vcs/log/history/FileHistory.kt @@ -175,12 +175,12 @@ internal class FileHistoryRefiner(private val visibleLinearGraph: LinearGraph, private val paths = Stack() private val visibilityBuffer = BitSetFlags(permanentLinearGraph.nodesCount()) // a reusable buffer for bfs private val pathsForCommits = ContainerUtil.newHashMap() - private val excluded = ContainerUtil.newHashSet() fun refine(row: Int, startPath: MaybeDeletedFilePath): Pair, HashSet> { paths.push(startPath) LinearGraphUtils.asLiteLinearGraph(visibleLinearGraph).walk(row, this) + val excluded = ContainerUtil.newHashSet() pathsForCommits.forEach { commit, path -> if (path != null && !namesData.affects(commit, path, true)) { excluded.add(commit)