summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRubén Dávila <ruben@gitlab.com>2017-12-20 10:57:27 -0500
committerRubén Dávila <ruben@gitlab.com>2017-12-20 10:57:27 -0500
commitc927e57466b6c705891f09c95f566259d8e1ec0e (patch)
treec464abfd7c7f7138ea5ae0dabebd7e9f3a0680b2 /doc
parentc210ddab9289e29fadc9a5a0462ffbe864af736c (diff)
downloadgitlab-ce-c927e57466b6c705891f09c95f566259d8e1ec0e.tar.gz
Updates from last code review:38356-add-last_commit_sha-to-the-commit-api
- Apply some refactoring for code reuse - Add file status validation for Files::DeleteService - Write additional specs
Diffstat (limited to 'doc')
-rw-r--r--doc/api/commits.md2
-rw-r--r--doc/api/repository_files.md1
2 files changed, 2 insertions, 1 deletions
diff --git a/doc/api/commits.md b/doc/api/commits.md
index 7de08d230dd..c9b72d4a1dd 100644
--- a/doc/api/commits.md
+++ b/doc/api/commits.md
@@ -84,7 +84,7 @@ POST /projects/:id/repository/commits
| `previous_path` | string | no | Original full path to the file being moved. Ex. `lib/class1.rb` |
| `content` | string | no | File content, required for all except `delete`. Optional for `move` |
| `encoding` | string | no | `text` or `base64`. `text` is default. |
-| `last_commit_id` | string | no | Last known file commit id |
+| `last_commit_id` | string | no | Last known file commit id. Will be only considered in update, move and delete actions. |
```bash
PAYLOAD=$(cat << 'JSON'
diff --git a/doc/api/repository_files.md b/doc/api/repository_files.md
index c517a38a8ba..a1a0b1b756c 100644
--- a/doc/api/repository_files.md
+++ b/doc/api/repository_files.md
@@ -151,3 +151,4 @@ Parameters:
- `author_email` (optional) - Specify the commit author's email address
- `author_name` (optional) - Specify the commit author's name
- `commit_message` (required) - Commit message
+- `last_commit_id` (optional) - Last known file commit id