Method: Gitlab::Client::Repositories#commit
- Defined in:
- lib/gitlab/client/repositories.rb
#commit(project, sha) ⇒ Gitlab::ObjectifiedHash Also known as: repo_commit
Gets a specific commit identified by the commit hash or name of a branch or tag.
62 63 64 |
# File 'lib/gitlab/client/repositories.rb', line 62 def commit(project, sha) get("/projects/#{project}/repository/commits/#{sha}") end |