public class GitRepositoryHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PATH_TO_TOUCH |
static String |
GIT_USER_EMAIL |
static String |
GIT_USER_NAME |
Modifier and Type | Method and Description |
---|---|
static void |
checkoutBranch(GitRepositoryDescriptor clonedWorkspace,
String branchName) |
static void |
createBranch(GitRepositoryDescriptor clonedWorkspace,
String branchName) |
static void |
deleteBranch(GitRepositoryDescriptor clonedWorkspace,
String branchName) |
static void |
pushBranch(GitRepositoryDescriptor clonedWorkspace,
String branchName) |
static String |
readChangeSetId(File workspaceRoot,
String branchName) |
static String |
touch(RepositoryDescriptor remoteRepository) |
static String |
touch(RepositoryDescriptor remoteRepository,
com.atlassian.fugue.Option<String> branchName,
String pathToTouch,
String comment) |
static String |
touch(RepositoryDescriptor remoteRepository,
com.atlassian.fugue.Option<String> branchName,
String pathToTouch,
String comment,
String gitUserName,
String gitUserEmail) |
static String |
touch(RepositoryDescriptor remoteRepository,
String comment) |
static String |
touchBranch(RepositoryDescriptor remoteRepository,
String branchName,
String comment) |
static String |
touchClonedWorkspace(GitRepositoryDescriptor clonedWorkspace,
String pathToTouch,
String comment) |
static String |
touchClonedWorkspace(GitRepositoryDescriptor clonedWorkspace,
String pathToTouch,
String comment,
String gitUserName,
String gitUserEmail) |
public static final String GIT_USER_NAME
public static final String GIT_USER_EMAIL
public static final String DEFAULT_PATH_TO_TOUCH
@Nullable public static String touch(@NotNull RepositoryDescriptor remoteRepository, @NotNull String comment) throws IOException, InterruptedException
IOException
InterruptedException
@Nullable public static String touchBranch(@NotNull RepositoryDescriptor remoteRepository, @NotNull String branchName, @NotNull String comment) throws IOException, InterruptedException
IOException
InterruptedException
@Nullable public static String touch(@NotNull RepositoryDescriptor remoteRepository) throws IOException, InterruptedException
IOException
InterruptedException
@Nullable public static String touch(@NotNull RepositoryDescriptor remoteRepository, @NotNull com.atlassian.fugue.Option<String> branchName, @NotNull String pathToTouch, @NotNull String comment) throws IOException, InterruptedException
IOException
InterruptedException
@Nullable public static String touch(@NotNull RepositoryDescriptor remoteRepository, @NotNull com.atlassian.fugue.Option<String> branchName, @NotNull String pathToTouch, @NotNull String comment, @NotNull String gitUserName, @NotNull String gitUserEmail) throws IOException, InterruptedException
IOException
InterruptedException
@Nullable public static String touchClonedWorkspace(@NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull String pathToTouch, @NotNull String comment) throws IOException, InterruptedException
IOException
InterruptedException
@Nullable public static String touchClonedWorkspace(@NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull String pathToTouch, @NotNull String comment, @NotNull String gitUserName, @NotNull String gitUserEmail) throws IOException, InterruptedException
IOException
InterruptedException
@Nullable public static String readChangeSetId(@NotNull File workspaceRoot, @Nullable String branchName) throws IOException, InterruptedException
IOException
InterruptedException
public static void checkoutBranch(@NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull String branchName) throws IOException, InterruptedException
IOException
InterruptedException
public static void createBranch(@NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull String branchName) throws IOException, InterruptedException
IOException
InterruptedException
public static void pushBranch(@NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull String branchName) throws IOException, InterruptedException
IOException
InterruptedException
public static void deleteBranch(@NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull String branchName) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.