Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e213aea

Browse files
committed
update
1 parent 12fa5a7 commit e213aea

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

‎Repositories/Commits.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Get a single commit
44

5+
>Available since 0.11.80
6+
57
```
68
GET /repos/:username/:reponame/commits/:sha
79
```
@@ -57,4 +59,24 @@ Status: 200 OK
5759
}
5860
]
5961
}
62+
```
63+
64+
## Get the SHA-1 of a commit reference
65+
66+
>Available since 0.11.80
67+
68+
```
69+
GET /repos/:username/:reponame/commits/:ref
70+
Accept: application/vnd.gogs.sha
71+
```
72+
73+
It supports either short name (e.g. `master`, `feature/666`) or full name (e.g. `refs/tags/v1.0`, `refs/heads/develop`).
74+
75+
### Response
76+
77+
```
78+
Status: 200 OK
79+
```
80+
```
81+
dc20792485ffd49b0bca49f90a8d44a16241b84a
6082
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /