change

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(baseRoot, currentRoot string) ([]string, error)

Types

type FilterResult added in v0.1.10

type FilterResult struct {
	Paths    []string
	Included []string
	Ignored  []string
}

type IgnoreMatcher added in v0.2.5

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

IgnoreMatcher reports whether repository-relative paths match a validated set of ignore globs, using the same normalization and doublestar semantics as PathFilter. The zero value matches nothing.

func NewIgnoreMatcher added in v0.2.5

func NewIgnoreMatcher(globs []string, label string) (IgnoreMatcher, error)

NewIgnoreMatcher validates globs and returns a matcher. Validation errors name the flag given by label (for example "discover-ignore").

func (IgnoreMatcher) Matches added in v0.2.5

func (matcher IgnoreMatcher) Matches(inputPath string) bool

type Index

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

func NewIndex

func NewIndex() *Index

func (*Index) Add

func (i *Index) Add(application string, inputs []string)

func (*Index) Match

func (i *Index) Match(changed []string) MatchResult

type MatchResult

type MatchResult struct {
	Applications []string
	Unowned      []string
	RenderAll    bool
}

type PathFilter added in v0.1.10

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

func NewPathFilter added in v0.1.10

func NewPathFilter(config PathFilterConfig) (PathFilter, error)

func (PathFilter) Apply added in v0.1.10

func (filter PathFilter) Apply(paths []string) FilterResult

type PathFilterConfig added in v0.1.10

type PathFilterConfig struct {
	Includes []string
	Ignores  []string
}

Jump to

Keyboard shortcuts

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