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