← All procedures
git.stash.pop
Pop stash (apply and remove)
CLI- Package
- @procedures/git · README
- Path
["git","stash","pop"]- CLI
mark git stash pop- As data
{"$proc":["git","stash","pop"],"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","pop"], {});
console.log(JSON.stringify(result));From the command line
$ mark git stash pop
As data, in a program
{ "$proc": ["git", "stash", "pop"], "input": {} }Input
| Field | Type | Required | Default | Description |
|---|
index | number | no | | Stash index to pop (default: 0 = most recent) |
cwd | string | no | | Working directory |
Output
| Field | Type | Required | Default | Description |
|---|
applied | boolean | yes | | True when the stash was applied |
ref | string | yes | | The stash reference |
dropped | boolean | yes | | True when the stash was dropped (false after a conflict) |
conflict | boolean | no | | True when the stash had a merge conflict |
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"index": {
"description": "Stash index to pop (default: 0 = most recent)",
"type": "number"
},
"cwd": {
"description": "Working directory",
"type": "string"
}
}
},
"output": {
"type": "object",
"properties": {
"applied": {
"type": "boolean",
"description": "True when the stash was applied"
},
"ref": {
"type": "string",
"description": "The stash reference"
},
"dropped": {
"type": "boolean",
"description": "True when the stash was dropped (false after a conflict)"
},
"conflict": {
"description": "True when the stash had a merge conflict",
"type": "boolean"
}
},
"required": [
"applied",
"ref",
"dropped"
],
"additionalProperties": {}
}
}