diff options
Diffstat (limited to 'modules/structs')
-rw-r--r-- | modules/structs/repo_file.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/structs/repo_file.go b/modules/structs/repo_file.go index 71733c90e7..e2947bf7ac 100644 --- a/modules/structs/repo_file.go +++ b/modules/structs/repo_file.go @@ -50,6 +50,14 @@ type UpdateFileOptions struct { FromPath string `json:"from_path" binding:"MaxSize(500)"` } +// ApplyDiffPatchFileOptions options for applying a diff patch +// Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used) +type ApplyDiffPatchFileOptions struct { + DeleteFileOptions + // required: true + Content string `json:"content"` +} + // FileLinksResponse contains the links for a repo's file type FileLinksResponse struct { Self *string `json:"self"` |