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 |
addFile(GitRepositoryDescriptor repositoryDescriptor,
File file,
String commitMessage) |
static void |
checkoutBranch(GitRepositoryDescriptor clonedWorkspace,
String branchName) |
static RepositoryHelper.CommandResult |
commit(File cwd,
String... someArgs) |
static RepositoryHelper.CommandResult |
commit(Path cwd,
String... someArgs) |
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,
Optional<String> branchName,
String pathToTouch,
String comment) |
static String |
touch(RepositoryDescriptor remoteRepository,
Optional<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 Optional<String> branchName, @NotNull String pathToTouch, @NotNull String comment) throws IOException, InterruptedException
IOException
InterruptedException
@Nullable public static String touch(@NotNull RepositoryDescriptor remoteRepository, @NotNull Optional<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
public static void addFile(@NotNull GitRepositoryDescriptor repositoryDescriptor, @NotNull File file, @NotNull String commitMessage) throws IOException, InterruptedException
IOException
InterruptedException
public static RepositoryHelper.CommandResult commit(Path cwd, String... someArgs) throws IOException, InterruptedException
IOException
InterruptedException
public static RepositoryHelper.CommandResult commit(File cwd, String... someArgs) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.