GitIgnore

com.github.arturopala.gitignore.GitIgnore$
See theGitIgnore companion class
object GitIgnore

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

case object Abstain extends Vote

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Vote
class Object
trait Matchable
class Any
Self type
Abstain.type
final case class AnyDirectoryPattern(gitPattern: String) extends Pattern

Matches any directories chain of the path.

Matches any directories chain of the path.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Pattern
class Object
trait Matchable
class Any
final case class AnyNamePattern(gitPattern: String) extends Pattern

Matches any single segment of the path.

Matches any single segment of the path.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Pattern
class Object
trait Matchable
class Any
final case class AnyPathPattern(gitPattern: String) extends Pattern

Matches any segments chain of the path.

Matches any segments chain of the path.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Pattern
class Object
trait Matchable
class Any
final case class AnyPrefixPattern(gitPattern: String) extends Pattern

Matches any initial segments prefix of the path.

Matches any initial segments prefix of the path.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Pattern
class Object
trait Matchable
class Any
final case class DirectoryPrefixPattern(gitPattern: String) extends Pattern

Matches initial directories prefix of the path.

Matches initial directories prefix of the path.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Pattern
class Object
trait Matchable
class Any
final case class GlobMatcher(gitPattern: String) extends Matcher

Matches path using a Git pattern compiled as a Glob.Pattern.

Matches path using a Git pattern compiled as a Glob.Pattern.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher
class Object
trait Matchable
class Any
case class Ignore(position: Int) extends Vote

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Vote
class Object
trait Matchable
class Any
final case class LiteralMatcher(gitPattern: String) extends Matcher

Matches path literally with Git pattern.

Matches path literally with Git pattern.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher
class Object
trait Matchable
class Any
object Matcher

Re-usable matcher instance.

Re-usable matcher instance.

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Matcher.type
sealed trait Matcher

Matches path against the Git pattern.

Matches path against the Git pattern.

Each method returns the furthest matched position, or -1 if not matched at all.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
final case class Negate(nestedPattern: Pattern) extends Pattern

Reverts match, if any, of the nested pattern.

Reverts match, if any, of the nested pattern.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Pattern
class Object
trait Matchable
class Any
sealed trait Pattern

Internal model of the path pattern.

Internal model of the path pattern.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class Unignore(position: Int) extends Vote

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Vote
class Object
trait Matchable
class Any
object Vote

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Vote.type
sealed trait Vote

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Abstain.type
class Ignore
class Unignore

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

final def apply(gitPattern: String): GitIgnore

Create GitIgnore from a single well-formed pattern.

Create GitIgnore from a single well-formed pattern.

Attributes

final def parse(gitIgnore: String): GitIgnore

Parse .gitignore file content into GitIgnore instance.

Parse .gitignore file content into GitIgnore instance.

Attributes

final def parseGitIgnore(gitIgnore: String): List[String]

Parse .gitignore file content and return sequence of patterns.

Parse .gitignore file content and return sequence of patterns.

Attributes

final def parseGitPattern(p: String): Pattern

Parse single Git pattern into internal representation.

Parse single Git pattern into internal representation.

Attributes