public static @NotNull Collection<GitDiffChange> getUnstagedChanges(@NotNull Project project,
                                                                      @NotNull VirtualFile root,
                                                                      @Nullable Collection<FilePath> paths,
                                                                      boolean detectMoves) throws VcsException {
    if (detectMoves) {
      return getLocalChanges(project, root, paths, "-M");
    }
    else {
      return getLocalChanges(project, root, paths, "--no-renames");
    }
  }
public static @NotNull Collection<GitDiffChange> getUnstagedChanges(@NotNull Project project,
                                                                      @NotNull VirtualFile root,
                                                                      @Nullable Collection<FilePath> paths,
                                                                      boolean detectMoves)