in app/lib/FileFinder.scala [13:25]
private[lib] def objectIdForPath(path: String): Option[ObjectId] =
Try(
TreeWalk
.forPath(reader, path, commit.getTree)
.getObjectId(0)
).toOption
def read(path: String): Option[String] = {
objectIdForPath(path).map { objectId =>
val bytes: Array[Byte] = objectId.open.getCachedBytes(4096)
new String(bytes, "UTF-8")
}
}