diff options
Diffstat (limited to 'ruby/lib/gitaly_server/commit_service.rb')
-rw-r--r-- | ruby/lib/gitaly_server/commit_service.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/ruby/lib/gitaly_server/commit_service.rb b/ruby/lib/gitaly_server/commit_service.rb index e4916ec70..1aed50b3e 100644 --- a/ruby/lib/gitaly_server/commit_service.rb +++ b/ruby/lib/gitaly_server/commit_service.rb @@ -3,24 +3,6 @@ module GitalyServer include Utils include Gitlab::EncodingHelper - # TODO remove in gitlab 12.0, this is implemented in Go now: - # https://gitlab.com/gitlab-org/gitaly/issues/1471 - def commit_stats(request, call) - repo = Gitlab::Git::Repository.from_gitaly(request.repository, call) - revision = request.revision unless request.revision.empty? - - commit = Gitlab::Git::Commit.find(repo, revision) - - # In the odd case that the revision given doesn't exist we need to raise - # an exception. Since GitLab (currently) already does this for us we don't - # expect this to actually happen, just guarding against future code change - raise GRPC::Internal.new("commit not found for revision '#{revision}'") unless commit - - stats = Gitlab::Git::CommitStats.new(repo, commit) - - Gitaly::CommitStatsResponse.new(oid: stats.id, additions: stats.additions, deletions: stats.deletions) - end - def find_commits(request, call) repository = Gitlab::Git::Repository.from_gitaly(request.repository, call) options = { |