← All procedures
git.merge.abort
Stop a merge that has conflicts, and put back the state before it
CLI- Package
- @procedures/git · README
- Path
["git","merge","abort"]- CLI
mark git merge abort- As data
{"$proc":["git","merge","abort"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/git/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["git","merge","abort"], {});
console.log(JSON.stringify(result));From the command line
$ mark git merge abort
As data, in a program
{ "$proc": ["git", "merge", "abort"], "input": {} }Input
Output
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"cwd": {
"description": "Working directory",
"type": "string"
}
}
},
"output": {
"type": "object",
"properties": {
"aborted": {
"type": "boolean",
"description": "True when the merge was stopped"
},
"hash": {
"type": "string",
"description": "HEAD after the call"
}
},
"required": [
"aborted",
"hash"
],
"additionalProperties": {}
}
}