public class ApplyCommandFixed
extends org.eclipse.jgit.api.GitCommand<org.eclipse.jgit.api.ApplyResult>
| Constructor and Description |
|---|
ApplyCommandFixed(org.eclipse.jgit.lib.Repository repo)
Constructs the command if the patch is to be applied to the index.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.api.ApplyResult |
call()
Executes the
ApplyCommand command with all the options and
parameters collected by the setter methods (e.g. |
ApplyCommandFixed |
setPatch(java.io.InputStream in) |
public ApplyCommandFixed(org.eclipse.jgit.lib.Repository repo)
repo - public ApplyCommandFixed setPatch(java.io.InputStream in)
in - the patch to applypublic org.eclipse.jgit.api.ApplyResult call()
throws org.eclipse.jgit.api.errors.GitAPIException,
org.eclipse.jgit.api.errors.PatchFormatException,
org.eclipse.jgit.api.errors.PatchApplyException
ApplyCommand command with all the options and
parameters collected by the setter methods (e.g.
setPatch(InputStream) of this class. Each instance of this class
should only be used for one invocation of the command. Don't call this
method twice on an instance.call in interface java.util.concurrent.Callable<org.eclipse.jgit.api.ApplyResult>call in class org.eclipse.jgit.api.GitCommand<org.eclipse.jgit.api.ApplyResult>ApplyResult object representing the command resultorg.eclipse.jgit.api.errors.GitAPIExceptionorg.eclipse.jgit.api.errors.PatchFormatExceptionorg.eclipse.jgit.api.errors.PatchApplyException