public abstract class VcsRootChecker
extends java.lang.Object
VcsRootDetector
to detect invalid roots (registered in the settings, but not related to real VCS roots on disk)
and unregistered roots (real roots on disk not registered in the settings).Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<VcsRootChecker> |
EXTENSION_POINT_NAME |
Constructor and Description |
---|
VcsRootChecker() |
Modifier and Type | Method and Description |
---|---|
boolean |
areChildrenValidMappings() |
abstract VcsKey |
getSupportedVcs()
Returns the VCS supported by this checker.
|
boolean |
isIgnored(VirtualFile root,
VirtualFile checkForIgnore)
Check if the given directory is ignored in the given VCS root.
|
boolean |
isRoot(java.lang.String path)
Checks if the given path represents a root of the supported VCS.
|
boolean |
isVcsDir(java.lang.String dirName)
Checks if the given directory looks like a VCS special directory, e.g.
|
boolean |
validateRoot(java.lang.String path)
Checks if registered mapping can be used to perform VCS operations.
|
public static final ExtensionPointName<VcsRootChecker> EXTENSION_POINT_NAME
public boolean isRoot(java.lang.String path)
public boolean validateRoot(java.lang.String path)
isRoot(java.lang.String)
is that this method should return true
if unsure.public abstract VcsKey getSupportedVcs()
public boolean isVcsDir(java.lang.String dirName)
.git
".
isRoot(String)
.public boolean isIgnored(VirtualFile root, VirtualFile checkForIgnore)
public boolean areChildrenValidMappings()