Skip to content
Snippets Groups Projects

Add an option to use `unidiff` format for diff API responses

Merged Vasilii Iakliushin requested to merge 23284_expose_unidiff_field_for_diffs into master
All threads resolved!
Files
6
+ 1
1
@@ -452,7 +452,7 @@ Parameters:
| --------- | ---- | -------- | ----------- |
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user
| `sha` | string | yes | The commit hash or name of a repository branch or tag |
| `unidiff` | boolean | no | The diff will be in unidiff format |
| `unidiff` | boolean | no | The diff will be in Unified diff format |
```shell
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/repository/commits/master/diff"
Loading