void (@NotNull GitRepository repository, @Nullable Hash startHash) { Collection<Change> changes = null; if (startHash != null) { Hash currentHash = getHead(repository); if (currentHash != null) { RefreshVFsSynchronously.trace(String.format("changes: %s -> %s", startHash.asString(), currentHash.asString())); changes = GitChangeUtils.getDiff(repository, startHash.asString(), currentHash.asString(), false); } } refreshVfs(repository.getRoot(), changes); }