ignore

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Filename = ".commitbriefignore"

Variables

This section is empty.

Functions

func BuiltinPatterns

func BuiltinPatterns() []string

Types

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

func Builtin

func Builtin() *Matcher

func Compose

func Compose(layers ...*Matcher) *Matcher

func Empty

func Empty() *Matcher

func Parse

func Parse(r io.Reader) (*Matcher, error)

func ParseFile

func ParseFile(path string) (*Matcher, error)

func (*Matcher) Len

func (m *Matcher) Len() int

func (*Matcher) Match

func (m *Matcher) Match(path string) bool

func (*Matcher) MatchParts added in v0.9.0

func (m *Matcher) MatchParts(parts []string) bool

MatchParts is the same logical predicate as Match but accepts an already-split `[]string` path. Use this when the caller already has the parts (e.g. diff.Filter has FileDiff.PathParts populated at parse time) to skip the per-call strings.Split allocation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL