diff options
author | Maciej Nowak <maciejt.nowak@gmail.com> | 2018-06-23 22:39:11 +0300 |
---|---|---|
committer | Maciej Nowak <maciejt.nowak@gmail.com> | 2018-06-28 10:19:50 +0300 |
commit | 591edb439c2608f7448d7c3d5d2fc35e0ad5e8c1 (patch) | |
tree | 9219fc5db67b8d8aa8a40de5f01e27318728dc2a /doc/api | |
parent | 2bac2918b2d6f12d94f739f4b6865b9e9221c642 (diff) |
Allow straight diff in Compare API
Repository compare API now allows choosing straight (from..to) or merge-base diff (from...to)
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/repositories.md | 1 |
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 |