Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Latest commit

 

History

History
32 lines (23 loc) · 758 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 758 Bytes

scala-gitignore

.gitignore file traverse algorithm implementation.

Example

scala> import java.nio.file.Path, codes.quine.labo.gitignore._
import java.nio.file.Path
import codes.quine.labo.gitignore._

scala> {
     |   val list = List.newBuilder[String]
     |   GitIgnore.traverse(Path.of("project")) { path =>
     |     list.addOne(Path.of("").toAbsolutePath.relativize(path).toString)
     |   }
     |   list.result()
     | }
res0: List[String] = List(project/build.properties, project/plugin.sbt)

Features

  • Nested .gitignore is supported.
  • Complex glob syntax works.
  • Ignore filenames can be customized.

License

MIT License.

2020 (C) TSUYUSATO "MakeNowJust" Kitsune