public class StashApplyCommand extends GitCommand<ObjectId>
repo| Constructor and Description | 
|---|
StashApplyCommand(Repository repo)
Create command to apply the changes of a stashed commit 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ObjectId | 
call()
Apply the changes in a stashed commit to the working directory and index 
 | 
StashApplyCommand | 
ignoreRepositoryState(boolean willIgnoreRepositoryState)  | 
void | 
setApplyIndex(boolean applyIndex)  | 
void | 
setApplyUntracked(boolean applyUntracked)  | 
StashApplyCommand | 
setStashRef(String stashRef)
Set the stash reference to apply 
 | 
StashApplyCommand | 
setStrategy(MergeStrategy strategy)  | 
checkCallable, getRepository, setCallablepublic StashApplyCommand(Repository repo)
repo - public StashApplyCommand setStashRef(String stashRef)
This will default to apply the latest stashed commit (stash@{0}) if unspecified
stashRef - thispublic StashApplyCommand ignoreRepositoryState(boolean willIgnoreRepositoryState)
willIgnoreRepositoryState - thispublic ObjectId call() throws GitAPIException, WrongRepositoryStateException, NoHeadException, StashApplyFailureException
call in interface Callable<ObjectId>call in class GitCommand<ObjectId>GitAPIExceptionWrongRepositoryStateExceptionNoHeadExceptionStashApplyFailureExceptionpublic void setApplyIndex(boolean applyIndex)
applyIndex - true (default) if the command should restore the index statepublic StashApplyCommand setStrategy(MergeStrategy strategy)
strategy - The merge strategy to use in order to merge during this
            command execution.thispublic void setApplyUntracked(boolean applyUntracked)
applyUntracked - true (default) if the command should restore untracked filesCopyright © 2015 Eclipse JGit Project. All rights reserved.