Documentation
¶
Index ¶
- func ReadFilesAsLines(workingDir string, files []string) ([]string, error)
- func ToAbsDir(dir string) string
- type GitIgnore
- func AppendIgnoreFile(gi *GitIgnore, path string) (*GitIgnore, error)
- func AppendIgnoreFileList(gi *GitIgnore, workingDir string, fileList []string) (*GitIgnore, error)
- func AppendIgnoreFileWithDir(gi *GitIgnore, path string, dir string) (*GitIgnore, error)
- func AppendIgnoreLines(gi *GitIgnore, lines ...string) (*GitIgnore, error)
- func AppendIgnoreLinesWithDir(gi *GitIgnore, dir string, lines ...string) (*GitIgnore, error)
- func CompileIgnoreLines(lines []string, dir string, startLine int, root string) (*GitIgnore, error)
- func GenerateIntegratedGitIgnore(allowGitignore bool, root string, additionallyFileList []string) (*GitIgnore, error)
- func NewGitIgnore() *GitIgnore
- func NewGitignore(workingDir string, fileList []string) (*GitIgnore, error)
- func ParseGitIgnore(path string, root string) (*GitIgnore, error)
- type IgnorePattern
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GitIgnore ¶
type GitIgnore struct {
Root string
// contains filtered or unexported fields
}
func AppendIgnoreFileList ¶
func AppendIgnoreFileWithDir ¶ added in v0.0.6
func AppendIgnoreLinesWithDir ¶ added in v0.0.6
func CompileIgnoreLines ¶
func NewGitIgnore ¶ added in v0.0.6
func NewGitIgnore() *GitIgnore
func ParseGitIgnore ¶ added in v0.0.6
func (*GitIgnore) MatchesPath ¶ added in v0.0.6
func (*GitIgnore) MatchesPathHow ¶
func (gi *GitIgnore) MatchesPathHow(path string) (bool, *IgnorePattern)
func (*GitIgnore) Patterns ¶ added in v0.0.6
func (gi *GitIgnore) Patterns() []*IgnorePattern
Click to show internal directories.
Click to hide internal directories.