Currently only supported on a traditional file repository using one-file-per-ref reflogs.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | StashDropCommand(Repository
a repo)org. object.Constructor for StashDropCommand. |
| Modifier and Type | Method and Description |
|---|---|
| public ObjectId | call()
Implements abstract org. Implements java. Computes a result, or throws an exception if unable to do so. |
| private RefUpdate | |
| private void | |
| private Ref | |
| public StashDropCommand | Returns: thistrue to drop all stashed commits, false to
drop only the stashed commit set via calling
setStashRef(int)Set whether to drop all stashed commits |
| public StashDropCommand | Returns: thisthe 0-based index of the stash reference stashRef)Set the stash reference to drop (0-based). |
| private void |
| all | back to summary |
|---|---|
| private boolean all | |
| stashRefEntry | back to summary |
|---|---|
| private int stashRefEntry | |
| StashDropCommand | back to summary |
|---|---|
| public StashDropCommand(Repository repo) Constructor for StashDropCommand.
| |
| call | back to summary |
|---|---|
| public ObjectId call() throws GitAPIException Implements abstract org. Implements java. Doc from org. Computes a result, or throws an exception if unable to do so. Execute the command Drop the configured entry from the stash reflog and return value of the stash reference after the drop occurs
| |
| createRefUpdate | back to summary |
|---|---|
| private RefUpdate createRefUpdate(Ref stashRef) throws IOException | |
| deleteRef | back to summary |
|---|---|
| private void deleteRef(Ref stashRef) | |
| getRef | back to summary |
|---|---|
| private Ref getRef() throws GitAPIException | |
| setAll | back to summary |
|---|---|
| public StashDropCommand setAll(boolean all) Set whether to drop all stashed commits
| |
| setStashRef | back to summary |
|---|---|
| public StashDropCommand setStashRef(int stashRef) Set the stash reference to drop (0-based). This will default to drop the latest stashed commit (stash@{0}) if unspecified
| |
| updateRef | back to summary |
|---|---|
| private void updateRef(Ref stashRef, ObjectId newId) | |