public static @Nullable Collection<Change> getDiff(@NotNull GitRepository repository,
                                                     @NotNull @NonNls String oldRevision,
                                                     @NotNull @NonNls String newRevision,
                                                     boolean detectRenames) {
    try {
      return getDiff(repository.getProject(), repository.getRoot(), oldRevision, newRevision, null, detectRenames, false);
    }
    catch (VcsException e) {
      LOG.info("Couldn't collect changes between " + oldRevision + " and " + newRevision, e);
      return null;
    }
  }
public static @Nullable Collection<Change> getDiff(@NotNull GitRepository repository,
                                                     @NotNull @NonNls String oldRevision,
                                                     @NotNull @NonNls String newRevision,
                                                     boolean detectRenames)