JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.vcs.diff({
...
})[
{
"file": "<string>",
"patch": "<string>",
"additions": 123,
"deletions": 123,
"status": "added"
}
]API Reference
Get VCS diff
Retrieve the current git diff for the working tree or against the default branch.
GET
/
vcs
/
diff
JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.vcs.diff({
...
})[
{
"file": "<string>",
"patch": "<string>",
"additions": 123,
"deletions": 123,
"status": "added"
}
]