diff options
author | Norwin <noerw@users.noreply.github.com> | 2021-09-27 23:09:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 17:09:49 -0400 |
commit | f48dce3176649916c262ab080d5f38a0433f38c0 (patch) | |
tree | d009bc163d78577666dc462d376d697f600ef2d1 /templates/swagger | |
parent | e8574f2f7d4648b5b3fda48f3e31599a6b9dd40b (diff) | |
download | gitea-f48dce3176649916c262ab080d5f38a0433f38c0.tar.gz gitea-f48dce3176649916c262ab080d5f38a0433f38c0.zip |
Don't return binary file changes in raw PR diffs by default (#17158)
* return diffs without binary file content change
* ?binary=true option to restore old behaviour
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates/swagger')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 63eba45832..ef4f9247cf 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -7400,6 +7400,12 @@ "name": "diffType", "in": "path", "required": true + }, + { + "type": "boolean", + "description": "whether to include binary file changes. if true, the diff is applicable with `git apply`", + "name": "binary", + "in": "query" } ], "responses": { |