Get repository status
GET
/api/v1/git/repository/status
Get the current status of the repository, including the current HEAD commit and branch.
Responses
Repository status
application/json
JSON
{
"conflicts": [
"string"
],
"currentBranch": "string",
"head": {
"author": {
"email": "string",
"name": "string"
},
"body": "string",
"committer": {
"email": "string",
"name": "string"
},
"id": "string",
"summary": "string",
"time": "string",
"references": [
{
"kind": "string",
"name": "string"
}
]
},
"index": {
"deletedFiles": [
"string"
],
"modifiedFiles": [
"string"
],
"newFiles": [
"string"
],
"renamedFiles": [
"string"
]
},
"isDetachedHead": true,
"isDirty": true,
"worktree": {
"deletedFiles": [
"string"
],
"modifiedFiles": [
"string"
],
"newFiles": [
"string"
],
"renamedFiles": [
"string"
]
}
}
GET
/api/v1/git/repository/status