Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2018-06-28 12:04:18 +0300
committerSean McGivern <sean@mcgivern.me.uk>2018-06-28 12:04:18 +0300
commit5e7988eeccd017f2948831bdaab3bbdbc2e2b544 (patch)
treecee16fdeff3c18a8bbb588e85e66d01d0ca349b1 /doc/api
parent687278a6dd4296ecdd61028d4ad7ea3d2b2b7df3 (diff)
parent591edb439c2608f7448d7c3d5d2fc35e0ad5e8c1 (diff)
Merge branch 'straight-comparision-mode' into 'master'
Allow straight diff in Compare API See merge request gitlab-org/gitlab-ce!20120
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/repositories.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/api/repositories.md b/doc/api/repositories.md
index 5aff255c20a..cb816bbd712 100644
--- a/doc/api/repositories.md
+++ b/doc/api/repositories.md
@@ -130,6 +130,7 @@ Parameters:
- `id` (required) - The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user
- `from` (required) - the commit SHA or branch name
- `to` (required) - the commit SHA or branch name
+- `straight` (optional) - comparison method, `true` for direct comparison between `from` and `to` (`from`..`to`), `false` to compare using merge base (`from`...`to`)'. Default is `false`.
```
GET /projects/:id/repository/compare?from=master&to=feature