← All procedures
git.stash.drop
Drop a stash
CLI- Package
- @procedures/git · README
- Path
["git","stash","drop"]- CLI
mark git stash drop- As data
{"$proc":["git","stash","drop"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/git"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["git","stash","drop"], {});
console.log(JSON.stringify(result));From the command line
$ mark git stash drop
As data, in a program
{ "$proc": ["git", "stash", "drop"], "input": {} }Input
| Field | Type | Required | Default | Description |
|---|
index | number | no | | Stash index to drop (default: 0 = most recent) |
cwd | string | no | | Working directory |
Output
| Field | Type | Required | Default | Description |
|---|
dropped | boolean | yes | | True when the stash was dropped |
ref | string | yes | | The stash reference |
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"index": {
"description": "Stash index to drop (default: 0 = most recent)",
"type": "number"
},
"cwd": {
"description": "Working directory",
"type": "string"
}
}
},
"output": {
"type": "object",
"properties": {
"dropped": {
"type": "boolean",
"description": "True when the stash was dropped"
},
"ref": {
"type": "string",
"description": "The stash reference"
}
},
"required": [
"dropped",
"ref"
],
"additionalProperties": {}
}
}