gitignore

package
v2026.608.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DummyMatcher

type DummyMatcher bool

func (DummyMatcher) Match

func (d DummyMatcher) Match(path string, isDir bool) bool

type Matcher

type Matcher interface {
	Match(path string, isDir bool) bool
}

func NewFromFile

func NewFromFile(gitignore string, base ...string) (Matcher, error)

func NewGitIgnore

func NewGitIgnore(gitignore string, base ...string) (Matcher, error)

func NewGitIgnoreFromReader

func NewGitIgnoreFromReader(path string, r io.Reader) Matcher

type Stack

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

func NewStack

func NewStack(root string) *Stack

func (*Stack) Ignored

func (s *Stack) Ignored(absPath string, isDir bool) bool

func (*Stack) PopDir

func (s *Stack) PopDir()

func (*Stack) PushDir

func (s *Stack) PushDir(absDir string)

Jump to

Keyboard shortcuts

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