gitignore

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

Parser handles .gitignore pattern matching

func NewParser

func NewParser(rootPath string) (*Parser, error)

NewParser creates a new gitignore parser for the given root path

func (*Parser) IsIgnored

func (p *Parser) IsIgnored(path string) bool

IsIgnored checks if the given path should be ignored

func (*Parser) RootPath

func (p *Parser) RootPath() string

RootPath returns the root path of the parser

Jump to

Keyboard shortcuts

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