diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-28 03:09:04 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-28 03:09:04 +0000 |
commit | 597a43f359c3096d845e764b90439743962e5961 (patch) | |
tree | 2593024f91b2eb44e0764107490be4d0f1119ace /doc/api/repositories.md | |
parent | f54a50aa826d0eedcf2e56f51462613bc132f826 (diff) | |
download | gitlab-ce-597a43f359c3096d845e764b90439743962e5961.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/repositories.md')
-rw-r--r-- | doc/api/repositories.md | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/api/repositories.md b/doc/api/repositories.md index 3e34e1522e4..35762e3150f 100644 --- a/doc/api/repositories.md +++ b/doc/api/repositories.md @@ -7,7 +7,7 @@ be accessed without authentication if the repository is publicly accessible. This command provides essentially the same functionality as the `git ls-tree` command. For more information, see the section _Tree Objects_ in the [Git internals documentation](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects/#_tree_objects). -``` +```plaintext GET /projects/:id/repository/tree ``` @@ -79,7 +79,7 @@ Allows you to receive information about blob in repository like size and content. Note that blob content is Base64 encoded. This endpoint can be accessed without authentication if the repository is publicly accessible. -``` +```plaintext GET /projects/:id/repository/blobs/:sha ``` @@ -93,7 +93,7 @@ Parameters: Get the raw file contents for a blob by blob SHA. This endpoint can be accessed without authentication if the repository is publicly accessible. -``` +```plaintext GET /projects/:id/repository/blobs/:sha/raw ``` @@ -107,7 +107,7 @@ Parameters: Get an archive of the repository. This endpoint can be accessed without authentication if the repository is publicly accessible. -``` +```plaintext GET /projects/:id/repository/archive[.format] ``` @@ -130,7 +130,7 @@ curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.com/api/v4/pro This endpoint can be accessed without authentication if the repository is publicly accessible. Note that diffs could have an empty diff string if [diff limits](../development/diffs.md#diff-limits) are reached. -``` +```plaintext GET /projects/:id/repository/compare ``` @@ -141,7 +141,7 @@ Parameters: - `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`. -``` +```plaintext GET /projects/:id/repository/compare?from=master&to=feature ``` @@ -186,7 +186,7 @@ Response: Get repository contributors list. This endpoint can be accessed without authentication if the repository is publicly accessible. -``` +```plaintext GET /projects/:id/repository/contributors ``` @@ -198,16 +198,16 @@ Parameters: Response: -``` +```json [{ - "name": "Dmitriy Zaporozhets", - "email": "dmitriy.zaporozhets@gmail.com", + "name": "Example User", + "email": "example@example.com", "commits": 117, "additions": 2097, "deletions": 517 }, { - "name": "Jacob Vosmaer", - "email": "contact@jacobvosmaer.nl", + "name": "Sample User", + "email": "sample@example.com", "commits": 33, "additions": 338, "deletions": 244 @@ -218,7 +218,7 @@ Response: Get the common ancestor for 2 or more refs (commit SHAs, branch names or tags). -``` +```plaintext GET /projects/:id/repository/merge_base ``` |