def affectedFolders()

in app/lib/GitChanges.scala [26:40]


  def affectedFolders(base: RevCommit, head: RevCommit, interestingPaths: Set[String])(implicit revWalk: RevWalk): Set[String] = {
    implicit val reader = revWalk.getObjectReader

    val pathsWhichDoNotStartAndEndWithSlashes = interestingPaths.filterNot(p => p.startsWith("/") && p.endsWith("/"))
    require(pathsWhichDoNotStartAndEndWithSlashes.isEmpty,
      s"Interesting paths should start and end with a slash: $pathsWhichDoNotStartAndEndWithSlashes")

    revWalk.reset()
    revWalk.setRevFilter(MERGE_BASE)
    revWalk.markStart(base)
    revWalk.markStart(head)
    val mergeBase = revWalk.next()

    differentFolders(head, mergeBase, interestingPaths)
  }