ignore

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IgnoreList

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

IgnoreList handles checking whether files should be ignored based on default patterns and custom .contextshrinkerignore patterns.

func NewIgnoreList

func NewIgnoreList(rootDir string) (*IgnoreList, error)

NewIgnoreList creates an IgnoreList. It always appends the standard defaults.

func (*IgnoreList) ShouldIgnore

func (il *IgnoreList) ShouldIgnore(relPath string) bool

ShouldIgnore returns true if the given relative path matches any of the ignore patterns.

Jump to

Keyboard shortcuts

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