Class: Branches::DivergingCommitCountsService

Inherits:
Object
  • Object
show all
Defined in:
app/services/branches/diverging_commit_counts_service.rb

Instance Method Summary collapse

Constructor Details

#initialize(repository) ⇒ DivergingCommitCountsService

Returns a new instance of DivergingCommitCountsService.



5
6
7
8
# File 'app/services/branches/diverging_commit_counts_service.rb', line 5

def initialize(repository)
  @repository = repository
  @cache = Gitlab::RepositoryCache.new(repository)
end

Instance Method Details

#call(branch) ⇒ Object



10
11
12
# File 'app/services/branches/diverging_commit_counts_service.rb', line 10

def call(branch)
  diverging_commit_counts(branch)
end