Skip to main content
GET
/
api
/
v1
/
git
/
diff
Get diff
curl --request GET \
  --url http://localhost:3000/api/v1/git/diff \
  --cookie nut-session=
{
  "success": true,
  "data": {
    "diff": "<string>"
  }
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Query Parameters

staged
boolean
default:false

Show staged changes only

filepath
string

Filter by file path

Response

Diff output

success
boolean
required
data
object