Package net.javasauce.ss.tasks.git
Class AbstractGitTask
java.lang.Object
net.javasauce.ss.util.task.Task
net.javasauce.ss.tasks.git.AbstractGitTask
- Direct Known Subclasses:
CheckoutBranchTask,CommitTask,DeleteTagsTask,ExtractTestStatsTask,FastForwardTask,PushAllTask
Created by covers1624 on 6/29/25.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidamendChanges(@Nullable String message) protected voidcheckoutOrCreateBranch(String branch) protected voidcommitChanges(String message) protected voidprotected voidfastForwardBranch(String commit) protected voidfastForwardBranchToCommit(String branch, String commit) protected StringgetCommitMessage(String ref) protected @Nullable StringgetParentCommit(String ref) protected <T> TloadBlob(String object, net.covers1624.quack.util.SneakyUtils.ThrowingFunction<org.eclipse.jgit.lib.ObjectStream, ? extends T, IOException> func) protected voidprotected voidprotected voidprotected voidMethods inherited from class net.javasauce.ss.util.task.Task
computedOutput, declareCompositeTask, dependsOn, dependsOn, execute, getFuture, getName, input, input, inputCollection, optionalInput, output, runTasks, runTasks, withCaching, withCaching
-
Field Details
-
git
-
-
Constructor Details
-
AbstractGitTask
-
-
Method Details
-
checkoutOrCreateBranch
protected void checkoutOrCreateBranch(String branch) throws org.eclipse.jgit.api.errors.GitAPIException, IOException - Throws:
org.eclipse.jgit.api.errors.GitAPIExceptionIOException
-
stageChanges
protected void stageChanges() throws org.eclipse.jgit.api.errors.GitAPIException- Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
commitChanges
- Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
amendChanges
-
createTag
- Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
pushAllBranches
protected void pushAllBranches() throws org.eclipse.jgit.api.errors.GitAPIException- Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
pushAllTags
protected void pushAllTags() throws org.eclipse.jgit.api.errors.GitAPIException- Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
wipeCheckedOutFiles
- Throws:
IOException
-
loadBlob
@Nullable protected <T> T loadBlob(String object, net.covers1624.quack.util.SneakyUtils.ThrowingFunction<org.eclipse.jgit.lib.ObjectStream, ? extends T, throws IOExceptionIOException> func) - Throws:
IOException
-
listAllTags
-
listAllBranches
- Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
fastForwardBranchToCommit
-
fastForwardBranch
protected void fastForwardBranch(String commit) throws IOException, org.eclipse.jgit.api.errors.GitAPIException - Throws:
IOExceptionorg.eclipse.jgit.api.errors.GitAPIException
-
getCommitMessage
-
getParentCommit
-