in bunch-cli/src/main/kotlin/org/jetbrains/bunches/git/ignore.kt [8:19]
fun parseGitIgnore(baseGitRoot: File): IgnoreNode? {
val gitignoreFile = File(baseGitRoot, ".gitignore")
if (!gitignoreFile.exists()) {
return null
}
gitignoreFile.inputStream().use {
val ignore = IgnoreNode()
ignore.parse(it)
return ignore
}
}