diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-01-09 11:37:46 +0000 |
---|---|---|
committer | Luke Bennett <lbennett@gitlab.com> | 2018-01-10 00:31:06 +0000 |
commit | 767c6f138bfd99d314305dd351eff66435d6cd8f (patch) | |
tree | 9f299a8e0693a3f26fc99b1093ab7be2dfafa809 /doc | |
parent | 818979e1779a74ca1f52412aeb26e73672c9a547 (diff) | |
download | gitlab-ce-767c6f138bfd99d314305dd351eff66435d6cd8f.tar.gz |
Merge branch 'fj-41681-add-param-disable-commit-stats-api' into 'master'
Add option to disable commit stats to commit API
Closes #41681
See merge request gitlab-org/gitlab-ce!16309
(cherry picked from commit 088de97c3d86d9cf615538836527d23dbccd9712)
baeceb8b Adding stats param to the commit's endpoint
114cad58 Updated documentation
d5c5f2e6 Added specs
8f9e778a Added changelog
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/commits.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/api/commits.md b/doc/api/commits.md index c9b72d4a1dd..63554c63057 100644 --- a/doc/api/commits.md +++ b/doc/api/commits.md @@ -159,6 +159,7 @@ Parameters: | --------- | ---- | -------- | ----------- | | `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user | `sha` | string | yes | The commit hash or name of a repository branch or tag | +| `stats` | boolean | no | Include commit stats. Default is true | ```bash curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/5/repository/commits/master |