summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-10-11 16:27:04 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2018-10-12 11:41:22 +0200
commit71d71afb3ac5f302470e66ace4f59e247249d99e (patch)
tree0d869436e2ab72454ebb117cc3808ad764652e55 /doc
parent75723034cee27d387d7ac7edb88d1520bb3a6b7b (diff)
downloadgitlab-ce-71d71afb3ac5f302470e66ace4f59e247249d99e.tar.gz
Allow getting the merge base of multiple revisions
As we now support getting the merge base for multiple revisions in gitaly, we can provide this functionality in our API
Diffstat (limited to 'doc')
-rw-r--r--doc/api/repositories.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/repositories.md b/doc/api/repositories.md
index a4fdeca162e..f5ac3816fe5 100644
--- a/doc/api/repositories.md
+++ b/doc/api/repositories.md
@@ -216,7 +216,7 @@ GET /projects/:id/repository/merge_base
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) |
-| `refs` | array | yes | The refs to find the common ancestor of, for now only 2 refs are supported |
+| `refs` | array | yes | The refs to find the common ancestor of, multiple refs can be passed |
```bash
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/5/repository/merge_base?refs[]=304d257dcb821665ab5110318fc58a007bd104ed&refs[]=0031876facac3f2b2702a0e53a26e89939a42209"