package com.softwaremill.codebrag.service.commits

import com.softwaremill.codebrag.service.commits.jgit._
import com.softwaremill.codebrag.common.{Clock, EventBus}
import com.softwaremill.codebrag.dao.commitinfo.CommitInfoDAO
import com.softwaremill.codebrag.dao.repositorystatus.RepositoryStatusDAO

trait CommitsModule {

  lazy val commitsLoader = new JgitCommitsLoader(new JgitLogConverter, repoStatusDao)

  lazy val commitImportService = new CommitImportService(
    commitsLoader,
    commitInfoDao,
    repoStatusDao,
    eventBus)(clock)

  lazy val diffLoader = new JgitDiffLoader()

  def commitInfoDao: CommitInfoDAO
  def repoStatusDao: RepositoryStatusDAO
  def eventBus: EventBus
  def clock: Clock
}

package com.softwaremill.codebrag.service.commits

import com.softwaremill.codebrag.service.commits.jgit._
import com.softwaremill.codebrag.common.{Clock, EventBus}
import com.softwaremill.codebrag.dao.repositorystatus.RepositoryStatusDAO
import com.softwaremill.codebrag.service.commits.branches.RepositoryCache

trait CommitsModule {

  lazy val commitImportService = new CommitImportService(repoStatusDao, eventBus, repositoryStateCache)(clock)
  lazy val diffLoader = new JgitDiffLoader()

  def repoStatusDao: RepositoryStatusDAO
  def eventBus: EventBus
  def clock: Clock
  def repositoryStateCache: RepositoryCache
}

Remove commits import-related stuff that is no longer used
Remove commits import-related stuff that is no longer used
