Get commit comparison information
Changed onBy default returns JSON commit comparison information. The raw diff or patch can be requested with the output query parameter set to diff or patch respectively.
Request
- Base URLhttps://demo.gitea.com/api/v1
- Auth
- HTTP basic
- or API key in query parameter token
- or API key in query parameter access_token
- or API key in header Authorization
- or API key in query parameter sudo
- or API key in header Sudo
- or API key in header X-GITEA-OTP
Path parameters
owner of the repo
name of the repo
compare two refs as base...head (or base..head); refs may be branches, tags, full or short SHAs (including branch names that contain slashes), optionally with a ^ or ~N revision suffix.
Query parameters
return the raw comparison as diff or patch instead of JSON
include verification for every commit (disable for speedup, default 'true')
include a list of affected files for every commit (disable for speedup, default 'true')
Response
Changes
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
- info
added the new optional
queryrequest parameterfiles
1 more change in this revision
- info