diff options
author | Nick Thomas <nick@gitlab.com> | 2018-11-27 16:27:51 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-11-28 11:50:05 +0000 |
commit | 14076062df5d9f369c42796e754b3918965a0623 (patch) | |
tree | 6f3e1a36914178a879002a2872d8e1e114652a1c /doc | |
parent | a54352406ae4d85a8c3352b4f6a7dfe669ecd817 (diff) | |
download | gitlab-ce-14076062df5d9f369c42796e754b3918965a0623.tar.gz |
Commits API: Preserve file content in move operations if unspecified
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. | |