case class GitIgnore(gitPatterns: Seq[String]) extends Product with Serializable
Filter paths using .gitignore patterns.
See:
- https://git-scm.com/docs/gitignore
- https://www.man7.org/linux/man-pages/man3/fnmatch.3.html
- https://www.man7.org/linux/man-pages/man7/glob.7.html
- Note
Paths representing directories MUST end with a slash, paths representing files MUST NOT end with a slash.
- Alphabetic
- By Inheritance
- GitIgnore
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new GitIgnore(gitPatterns: Seq[String])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val gitPatterns: Seq[String]
- final def isAllowed(path: String): Boolean
Check whether path should be allowed
Check whether path should be allowed
- path
path may end with slash [/] only if it denotes a directory
- returns
true if path should be allowed
- final def isAllowed(path: Iterable[String], isDirectory: Boolean): Boolean
Check whether path should be allowed
Check whether path should be allowed
- path
path representes as a sequence of parts
- isDirectory
true if this path represents a directory (folder), false otherwise
- returns
true if path should be allowed
- final def isIgnored(path: String): Boolean
Check whether path should be ignored
Check whether path should be ignored
- path
path may end with slash [/] only if it denotes a directory
- returns
true if path should be ignored
- final def isIgnored(path: Iterable[String], isDirectory: Boolean): Boolean
Check whether path should be ignored
Check whether path should be ignored
- path
path representes as a sequence of parts
- isDirectory
true if this path represents a directory (folder), false otherwise
- returns
true if path should be ignored
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- lazy val patterns: Seq[Pattern]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()