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, setCallable
public StashDropCommand(Repository repo)
repo
- public StashDropCommand setStashRef(int stashRef)
This will default to drop the latest stashed commit (stash@{0}) if unspecified
stashRef
- this
public StashDropCommand setAll(boolean all)
all
- true to drop all stashed commits, false to drop only the
stashed commit set via calling setStashRef(int)
this
public ObjectId call() throws GitAPIException
call
in interface Callable<ObjectId>
call
in class GitCommand<ObjectId>
GitAPIException
Copyright © 2015 Eclipse JGit Project. All rights reserved.