Class ApplyCommand
- All Implemented Interfaces:
Callable<ApplyResult>
Apply a patch to files and/or to the index.
- Since:
- 2.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA wrapper for returning both the applied tree ID and the applied files list, as well as file specific errors. -
Field Summary
Fields inherited from class GitCommand
repo -
Method Summary
Methods inherited from class GitCommand
checkCallable, getRepository, setCallable
-
Method Details
-
setPatch
Set patch- Parameters:
in- the patch to apply- Returns:
- this instance
-
call
Execute the command
Executes the
ApplyCommandcommand 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.- Specified by:
callin interfaceCallable<ApplyResult>- Specified by:
callin classGitCommand<ApplyResult>- Throws:
GitAPIExceptionPatchFormatExceptionPatchApplyException
-