fun test(repo: Repository, commitMessage: String) { val hash: String repo.git("add --verbose .") hash = repo.git("commit -m $commitMessage") } class Repository { fun git(s: String) = "" }