MCPcopy Create free account
hub / github.com/go-git/go-git / LoadSystemPatterns

Function LoadSystemPatterns

plumbing/format/gitignore/dir.go:142–144  ·  view source on GitHub ↗

LoadSystemPatterns loads gitignore patterns from the gitignore file declared in a system's /etc/gitconfig file. If the /etc/gitconfig file does not exist the function will return nil. If the core.excludesfile property is not declared, the function will return nil. If the file pointed to by the co

(fs billy.Filesystem)

Source from the content-addressed store, hash-verified

140//
141// The function assumes fs is rooted at the root filesystem.
142func LoadSystemPatterns(fs billy.Filesystem) (ps []Pattern, err error) {
143 return loadPatterns(fs, systemFile)
144}

Callers 1

Calls 1

loadPatternsFunction · 0.70

Tested by 1