ignore

package
v0.9.1 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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