summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorPatrick Bajao <ebajao@gitlab.com>2019-03-06 10:44:59 +0000
committerNick Thomas <nick@gitlab.com>2019-03-06 10:44:59 +0000
commitde5aef3bbda9217e32fc91c24280f78869c9c9c1 (patch)
tree1c2a7468e0b7f31134ee7b6e9f537b798fdf724e /doc/api
parentc9e5ce8dbd25203484b43c48f0a55a5d7bf396e8 (diff)
downloadgitlab-ce-de5aef3bbda9217e32fc91c24280f78869c9c9c1.tar.gz
Accept force option on commit via API
When `force` is set to `true` and `start_branch` is set, the branch will be ovewritten with the new commit based on the `HEAD` of the `start_branch`. This commit includes changes to update the `gitaly-proto` gem.
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/commits.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/api/commits.md b/doc/api/commits.md
index 8d36ae7d559..442178aedff 100644
--- a/doc/api/commits.md
+++ b/doc/api/commits.md
@@ -79,6 +79,7 @@ POST /projects/:id/repository/commits
| `author_email` | string | no | Specify the commit author's email address |
| `author_name` | string | no | Specify the commit author's name |
| `stats` | boolean | no | Include commit stats. Default is true |
+| `force` | boolean | no | When `true` overwrites the target branch with a new commit based on the `start_branch` |
| `actions[]` Attribute | Type | Required | Description |
| --------------------- | ---- | -------- | ----------- |