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(@NotNull GitRepositoryDescriptor repositoryDescriptor,
@NotNull File file,
@NotNull String commitMessage) |
static void |
checkoutBranch(@NotNull GitRepositoryDescriptor clonedWorkspace,
@NotNull String branchName) |
static RepositoryHelper.CommandResult |
commit(File cwd,
String... someArgs) |
static RepositoryHelper.CommandResult |
commit(Path cwd,
String... someArgs) |
static void |
createBranch(@NotNull GitRepositoryDescriptor clonedWorkspace,
@NotNull String branchName) |
static void |
createTag(@NotNull GitRepositoryDescriptor clonedWorkspace,
String tagName,
boolean isLightweightTag,
boolean push) |
static void |
deleteBranch(@NotNull GitRepositoryDescriptor clonedWorkspace,
@NotNull String branchName) |
static void |
pushBranch(@NotNull GitRepositoryDescriptor clonedWorkspace,
@NotNull String branchName) |
static @Nullable String |
readChangeSetId(@NotNull File workspaceRoot,
@Nullable String branchName) |
static @Nullable String |
touch(@NotNull RepositoryDescriptor remoteRepository) |
static @Nullable String |
touch(@NotNull RepositoryDescriptor remoteRepository,
@NotNull Optional<String> branchName,
@NotNull String pathToTouch,
@NotNull String comment) |
static @Nullable String |
touch(@NotNull RepositoryDescriptor remoteRepository,
@NotNull Optional<String> branchName,
@NotNull String pathToTouch,
@NotNull String comment,
@NotNull String gitUserName,
@NotNull String gitUserEmail) |
static @Nullable String |
touch(@NotNull RepositoryDescriptor remoteRepository,
@NotNull String comment) |
static @Nullable String |
touchBranch(@NotNull RepositoryDescriptor remoteRepository,
@NotNull String branchName,
@NotNull String comment) |
static @Nullable String |
touchClonedWorkspace(@NotNull GitRepositoryDescriptor clonedWorkspace,
@NotNull String pathToTouch,
@NotNull String comment) |
static @Nullable String |
touchClonedWorkspace(@NotNull GitRepositoryDescriptor clonedWorkspace,
@NotNull String pathToTouch,
@NotNull String comment,
@NotNull String gitUserName,
@NotNull 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 @Nullable String touch(@NotNull @NotNull RepositoryDescriptor remoteRepository, @NotNull @NotNull String comment) throws IOException, InterruptedException
IOException
InterruptedException
@Nullable public static @Nullable String touchBranch(@NotNull @NotNull RepositoryDescriptor remoteRepository, @NotNull @NotNull String branchName, @NotNull @NotNull String comment) throws IOException, InterruptedException
IOException
InterruptedException
@Nullable public static @Nullable String touch(@NotNull @NotNull RepositoryDescriptor remoteRepository) throws IOException, InterruptedException
IOException
InterruptedException
@Nullable public static @Nullable String touch(@NotNull @NotNull RepositoryDescriptor remoteRepository, @NotNull @NotNull Optional<String> branchName, @NotNull @NotNull String pathToTouch, @NotNull @NotNull String comment) throws IOException, InterruptedException
IOException
InterruptedException
@Nullable public static @Nullable String touch(@NotNull @NotNull RepositoryDescriptor remoteRepository, @NotNull @NotNull Optional<String> branchName, @NotNull @NotNull String pathToTouch, @NotNull @NotNull String comment, @NotNull @NotNull String gitUserName, @NotNull @NotNull String gitUserEmail) throws IOException, InterruptedException
IOException
InterruptedException
@Nullable public static @Nullable String touchClonedWorkspace(@NotNull @NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull @NotNull String pathToTouch, @NotNull @NotNull String comment) throws IOException, InterruptedException
IOException
InterruptedException
@Nullable public static @Nullable String touchClonedWorkspace(@NotNull @NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull @NotNull String pathToTouch, @NotNull @NotNull String comment, @NotNull @NotNull String gitUserName, @NotNull @NotNull String gitUserEmail) throws IOException, InterruptedException
IOException
InterruptedException
@Nullable public static @Nullable String readChangeSetId(@NotNull @NotNull File workspaceRoot, @Nullable @Nullable String branchName) throws IOException, InterruptedException
IOException
InterruptedException
public static void checkoutBranch(@NotNull @NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull @NotNull String branchName) throws IOException, InterruptedException
IOException
InterruptedException
public static void createBranch(@NotNull @NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull @NotNull String branchName) throws IOException, InterruptedException
IOException
InterruptedException
public static void pushBranch(@NotNull @NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull @NotNull String branchName) throws IOException, InterruptedException
IOException
InterruptedException
public static void deleteBranch(@NotNull @NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull @NotNull String branchName) throws IOException, InterruptedException
IOException
InterruptedException
public static void addFile(@NotNull @NotNull GitRepositoryDescriptor repositoryDescriptor, @NotNull @NotNull File file, @NotNull @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
public static void createTag(@NotNull @NotNull GitRepositoryDescriptor clonedWorkspace, String tagName, boolean isLightweightTag, boolean push) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.