public class ApplyCommand extends GitCommand<ApplyResult>
Modifier and Type | Class and Description |
---|---|
static class |
ApplyCommand.Result
A wrapper for returning both the applied tree ID and the applied files
list, as well as file specific errors.
|
repo
Modifier and Type | Method and Description |
---|---|
ApplyResult |
call() |
ApplyCommand |
setPatch(InputStream in)
Set patch
|
checkCallable, getRepository, setCallable
public ApplyCommand setPatch(InputStream in)
in
- the patch to applypublic ApplyResult call() throws GitAPIException, PatchFormatException, PatchApplyException
Execute the command
Executes the 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 Callable<ApplyResult>
call
in class GitCommand<ApplyResult>
GitAPIException
PatchFormatException
PatchApplyException
Copyright © 2023 Eclipse JGit Project. All rights reserved.