summaryrefslogtreecommitdiff
path: root/doc/api/commits.md
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-08-04 19:18:07 +0200
committerDouwe Maan <douwe@selenight.nl>2017-08-04 19:18:07 +0200
commitd41479266d16facdce08974ef76f3fb7539a1530 (patch)
treeb41245c96a85968bde0a65d66328aecbd99031c0 /doc/api/commits.md
parentc41f64d7ff8ddcc47e0ab269accc33b4a2653a22 (diff)
downloadgitlab-ce-d41479266d16facdce08974ef76f3fb7539a1530.tar.gz
Add start_branch to files and commits APIs
Diffstat (limited to 'doc/api/commits.md')
-rw-r--r--doc/api/commits.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/api/commits.md b/doc/api/commits.md
index c91f9ecbdaf..2a78553782f 100644
--- a/doc/api/commits.md
+++ b/doc/api/commits.md
@@ -69,8 +69,9 @@ POST /projects/:id/repository/commits
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) |
-| `branch` | string | yes | The name of a branch |
+| `branch` | string | yes | Name of the branch to commit into. To create a new branch, also provide `start_branch`. |
| `commit_message` | string | yes | Commit message |
+| `start_branch` | string | no | Name of the branch to start the new commit from |
| `actions[]` | array | yes | An array of action hashes to commit as a batch. See the next table for what attributes it can take. |
| `author_email` | string | no | Specify the commit author's email address |
| `author_name` | string | no | Specify the commit author's name |