public class ChangesUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ChangesUtil.PerVcsProcessor<T> |
static interface |
ChangesUtil.VcsSeparator<T> |
Modifier and Type | Field and Description |
---|---|
static <any> |
CASE_SENSITIVE_FILE_PATH_HASHING_STRATEGY |
static java.util.Comparator<LocalChangeList> |
CHANGELIST_COMPARATOR |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.io.File> |
filePathsToFiles(java.util.Collection<? extends FilePath> filePaths) |
static java.io.File |
findCommonAncestor(java.util.Collection<? extends Change> changes)
Find common ancestor for changes (included both before and after files)
|
static VirtualFile |
findValidParentAccurately(FilePath filePath) |
static java.util.Set<AbstractVcs> |
getAffectedVcses(java.util.Collection<? extends Change> changes,
Project project) |
static java.util.Set<AbstractVcs> |
getAffectedVcsesForFiles(java.util.Collection<? extends VirtualFile> files,
Project project) |
static FilePath |
getAfterPath(Change change) |
static java.util.stream.Stream<VirtualFile> |
getAfterRevisionsFiles(java.util.stream.Stream<? extends Change> changes) |
static FilePath |
getBeforePath(Change change) |
static LocalChangeList |
getChangeListIfOnlyOne(Project project,
Change [] changes) |
static FilePath |
getCommittedPath(Project project,
FilePath filePath) |
static FilePath |
getFilePath(Change change) |
static java.util.stream.Stream<VirtualFile> |
getFiles(java.util.stream.Stream<? extends Change> changes) |
static VirtualFile [] |
getFilesFromChanges(java.util.Collection<? extends Change> changes) |
static java.util.stream.Stream<VirtualFile> |
getFilesFromPaths(java.util.stream.Stream<? extends FilePath> paths) |
static java.util.List<java.io.File> |
getIoFilesFromChanges(java.util.Collection<? extends Change> changes) |
static FilePath |
getLocalPath(Project project,
FilePath filePath) |
static Navigatable [] |
getNavigatableArray(Project project,
java.util.stream.Stream<? extends VirtualFile> files) |
static Navigatable [] |
getNavigatableArray(Project project,
VirtualFile [] files) |
static java.util.List<FilePath> |
getPaths(java.util.Collection<? extends Change> changes) |
static java.util.stream.Stream<FilePath> |
getPaths(java.util.stream.Stream<? extends Change> changes) |
static java.util.stream.Stream<FilePath> |
getPathsCaseSensitive(Change change) |
static java.lang.String |
getProjectRelativePath(Project project,
java.io.File fileName) |
static AbstractVcs |
getVcsForChange(Change change,
Project project) |
static AbstractVcs |
getVcsForFile(java.io.File file,
Project project) |
static AbstractVcs |
getVcsForFile(VirtualFile file,
Project project) |
static boolean |
hasFileChanges(java.util.Collection<? extends Change> changes) |
static boolean |
isAffectedByChange(FilePath filePath,
Change change) |
static boolean |
isInternalOperation(VirtualFile file) |
static boolean |
isTextConflictingChange(Change change) |
static void |
markInternalOperation(java.lang.Iterable<? extends Change> changes,
boolean set) |
static void |
markInternalOperation(VirtualFile file,
boolean set) |
static void |
processChangesByVcs(Project project,
java.util.Collection<? extends Change> changes,
ChangesUtil.PerVcsProcessor<Change> processor) |
static void |
processFilePathsByVcs(Project project,
java.util.Collection<? extends FilePath> files,
ChangesUtil.PerVcsProcessor<FilePath> processor) |
static <T> void |
processItemsByVcs(java.util.Collection<? extends T> items,
ChangesUtil.VcsSeparator<? super T> separator,
ChangesUtil.PerVcsProcessor<T> processor) |
static void |
processVirtualFilesByVcs(Project project,
java.util.Collection<? extends VirtualFile> files,
ChangesUtil.PerVcsProcessor<VirtualFile> processor) |
public static final <any> CASE_SENSITIVE_FILE_PATH_HASHING_STRATEGY
public static final java.util.Comparator<LocalChangeList> CHANGELIST_COMPARATOR
public static AbstractVcs getVcsForChange(Change change, Project project)
public static java.util.Set<AbstractVcs> getAffectedVcses(java.util.Collection<? extends Change> changes, Project project)
public static java.util.Set<AbstractVcs> getAffectedVcsesForFiles(java.util.Collection<? extends VirtualFile> files, Project project)
public static AbstractVcs getVcsForFile(VirtualFile file, Project project)
public static AbstractVcs getVcsForFile(java.io.File file, Project project)
public static java.util.List<FilePath> getPaths(java.util.Collection<? extends Change> changes)
public static java.util.List<java.io.File> getIoFilesFromChanges(java.util.Collection<? extends Change> changes)
public static java.util.stream.Stream<FilePath> getPaths(java.util.stream.Stream<? extends Change> changes)
public static java.util.stream.Stream<FilePath> getPathsCaseSensitive(Change change)
public static java.util.stream.Stream<VirtualFile> getFiles(java.util.stream.Stream<? extends Change> changes)
public static java.util.stream.Stream<VirtualFile> getFilesFromPaths(java.util.stream.Stream<? extends FilePath> paths)
public static java.util.stream.Stream<VirtualFile> getAfterRevisionsFiles(java.util.stream.Stream<? extends Change> changes)
public static VirtualFile [] getFilesFromChanges(java.util.Collection<? extends Change> changes)
public static Navigatable [] getNavigatableArray(Project project, VirtualFile [] files)
public static Navigatable [] getNavigatableArray(Project project, java.util.stream.Stream<? extends VirtualFile> files)
public static LocalChangeList getChangeListIfOnlyOne(Project project, Change [] changes)
public static VirtualFile findValidParentAccurately(FilePath filePath)
public static java.lang.String getProjectRelativePath(Project project, java.io.File fileName)
public static boolean isTextConflictingChange(Change change)
public static <T> void processItemsByVcs(java.util.Collection<? extends T> items, ChangesUtil.VcsSeparator<? super T> separator, ChangesUtil.PerVcsProcessor<T> processor)
public static void processChangesByVcs(Project project, java.util.Collection<? extends Change> changes, ChangesUtil.PerVcsProcessor<Change> processor)
public static void processVirtualFilesByVcs(Project project, java.util.Collection<? extends VirtualFile> files, ChangesUtil.PerVcsProcessor<VirtualFile> processor)
public static void processFilePathsByVcs(Project project, java.util.Collection<? extends FilePath> files, ChangesUtil.PerVcsProcessor<FilePath> processor)
public static java.util.List<java.io.File> filePathsToFiles(java.util.Collection<? extends FilePath> filePaths)
public static boolean hasFileChanges(java.util.Collection<? extends Change> changes)
public static void markInternalOperation(java.lang.Iterable<? extends Change> changes, boolean set)
public static void markInternalOperation(VirtualFile file, boolean set)
public static boolean isInternalOperation(VirtualFile file)
public static java.io.File findCommonAncestor(java.util.Collection<? extends Change> changes)