WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

makenowjust-labs/scala-gitignore

Repository files navigation

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

About

.gitignore file traverse algorithm implementation.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages