Enum Class VcsType
- All Implemented Interfaces:
Serializable
,Comparable<VcsType>
,Constable
Utility enum for testing VCS repositories.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptioncheckoutRevisionCommand
(String revision) Command which will checkout the specified revision.commitChangesCommand
(String message) Locally commit changes previously staged withstageChangesCommand(String)
.createBranchCommand
(String branch) Command to create a new branch.extractCommitInfo
(String commitCommandOutput) Parse one line of the result of executinglistCommitsCommand(String)
.Command which will list all branches defined in the repository.listCommitsCommand
(String branch) Command which will list all commits for the VCS repository in a format that can be later accepted byextractCommitInfo(String)
.Command which will list all tags defined in the repository.Get the name of the main, default branch of the repository.Command to pull most recent changes from a remote.stageChangesCommand
(String path) Command to stage specified changes (add/remove tracked files) for committing.static VcsType
Returns the enum constant of this class with the specified name.static VcsType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GIT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
mainBranch
Get the name of the main, default branch of the repository. -
listCommitsCommand
Command which will list all commits for the VCS repository in a format that can be later accepted byextractCommitInfo(String)
. Newest commits should come first. Should work on a bare repository. -
extractCommitInfo
Parse one line of the result of executinglistCommitsCommand(String)
. -
listBranchesCommand
Command which will list all branches defined in the repository. Should work on a bare repository. -
listTagsCommand
Command which will list all tags defined in the repository. Should work on a bare repository. -
checkoutRevisionCommand
Command which will checkout the specified revision. Will only be executed on a working copy of the repository. -
pullCommand
Command to pull most recent changes from a remote. Will only be executed on a working copy of the repository. -
createBranchCommand
Command to create a new branch. Will only be executed on a working copy of the repository. -
stageChangesCommand
Command to stage specified changes (add/remove tracked files) for committing. Will only be executed on a working copy of the repository. -
commitChangesCommand
Locally commit changes previously staged withstageChangesCommand(String)
.
-