Method: Gitlab::Client::Commits#commit
- Defined in:
- lib/gitlab/client/commits.rb
permalink #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.
33 34 35 |
# File 'lib/gitlab/client/commits.rb', line 33 def commit(project, sha) get("/projects/#{url_encode project}/repository/commits/#{sha}") end |