@Override
  protected @NotNull List<Change> getChangesBetweenRevisions(@NotNull FilePath path, @NotNull GitFileRevision rev1, @Nullable GitFileRevision rev2)
    throws VcsException {
    VirtualFile root = GitUtil.getRootForFile(myProject, path);
    String hash1 = rev1.getHash();

    if (rev2 == null) {
      return new ArrayList<>(GitChangeUtils.getDiffWithWorkingDir(myProject, root, hash1,
                                                                  Collections.singleton(path), false));
    }

    String hash2 = rev2.getHash();
    return new ArrayList<>(GitChangeUtils.getDiff(myProject, root, hash1, hash2,
                                                  Collections.singletonList(path)));
  }
@Override
  protected @NotNull List<Change> getChangesBetweenRevisions(@NotNull FilePath path, @NotNull GitFileRevision rev1, @Nullable GitFileRevision rev2)