public class StashDropCommand extends GitCommand<ObjectId>
repo| Constructor and Description | 
|---|
StashDropCommand(Repository repo)  | 
| Modifier and Type | Method and Description | 
|---|---|
ObjectId | 
call()
Drop the configured entry from the stash reflog and return value of the
 stash reference after the drop occurs 
 | 
StashDropCommand | 
setAll(boolean all)
Set wheter drop all stashed commits 
 | 
StashDropCommand | 
setStashRef(int stashRef)
Set the stash reference to drop (0-based). 
 | 
checkCallable, getRepository, setCallablepublic StashDropCommand(Repository repo)
repo - public StashDropCommand setStashRef(int stashRef)
This will default to drop the latest stashed commit (stash@{0}) if unspecified
stashRef - thispublic StashDropCommand setAll(boolean all)
all - true to drop all stashed commits, false to drop only the
            stashed commit set via calling setStashRef(int)thispublic ObjectId call() throws GitAPIException
call in interface Callable<ObjectId>call in class GitCommand<ObjectId>GitAPIExceptionCopyright © 2015 Eclipse JGit Project. All rights reserved.