public enum VcsType extends Enum<VcsType>
Modifier and Type | Method and Description |
---|---|
String |
checkoutRevisionCommand(String revision)
Command which will checkout the specified revision.
|
String |
commitChangesCommand(String message)
Locally commit changes previously staged with
stageChangesCommand(String) . |
String |
createBranchCommand(String branch)
Command to create a new branch.
|
CommitInfo |
extractCommitInfo(String commitCommandOutput)
Parse one line of the result of executing
listCommitsCommand(String) . |
String |
listBranchesCommand()
Command which will list all branches defined in the repository.
|
String |
listCommitsCommand(String branch)
Command which will list all commits for the VCS repository in a format that can be later accepted by
extractCommitInfo(String) . |
String |
listTagsCommand()
Command which will list all tags defined in the repository.
|
String |
mainBranch()
Get the name of the main, default branch of the repository.
|
String |
pullCommand()
Command to pull most recent changes from a remote.
|
String |
stageChangesCommand(String path)
Command to stage specified changes (add/remove tracked files) for committing.
|
static VcsType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VcsType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static VcsType[] values()
for (VcsType c : VcsType.values()) System.out.println(c);
public static VcsType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String mainBranch()
public String listCommitsCommand(String branch)
extractCommitInfo(String)
. Newest commits should come first. Should work on a bare repository.public CommitInfo extractCommitInfo(String commitCommandOutput)
listCommitsCommand(String)
.public String listBranchesCommand()
public String listTagsCommand()
public String checkoutRevisionCommand(String revision)
public String pullCommand()
public String createBranchCommand(String branch)
public String stageChangesCommand(String path)
public String commitChangesCommand(String message)
stageChangesCommand(String)
.Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.