diff options
author | Rémy Coutable <remy@rymai.me> | 2018-11-29 14:36:16 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-11-29 14:36:16 +0300 |
commit | 7c0718cd79b9f7976e3a9d78fdc6661a6c9ebfba (patch) | |
tree | 9bcc63207ca7841414c7e5da0b1ad7589da3f4fd /doc | |
parent | 938b891f89403ced0268699a6295531db508be17 (diff) | |
parent | 14076062df5d9f369c42796e754b3918965a0623 (diff) |
Merge branch '51083-fix-move-api' into 'master'
Commits API: Preserve file content in move operations if unspecified
Closes #52974 et #51083
See merge request gitlab-org/gitlab-ce!23387
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/commits.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/commits.md b/doc/api/commits.md index 7d9b52ec24f..6c16216429d 100644 --- a/doc/api/commits.md +++ b/doc/api/commits.md @@ -87,7 +87,7 @@ POST /projects/:id/repository/commits | `action` | string | yes | The action to perform, `create`, `delete`, `move`, `update`, `chmod`| | `file_path` | string | yes | Full path to the file. Ex. `lib/class.rb` | | `previous_path` | string | no | Original full path to the file being moved. Ex. `lib/class1.rb`. Only considered for `move` action. | -| `content` | string | no | File content, required for all except `delete` and `chmod`. Optional for `move` | +| `content` | string | no | File content, required for all except `delete`, `chmod`, and `move`. Move actions that do not specify `content` will preserve the existing file content, and any other value of `content` will overwrite the file content. | | `encoding` | string | no | `text` or `base64`. `text` is default. | | `last_commit_id` | string | no | Last known file commit id. Will be only considered in update, move and delete actions. | | `execute_filemode` | boolean | no | When `true/false` enables/disables the execute flag on the file. Only considered for `chmod` action. | |