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

Function LoadSystemPatterns

plumbing/format/gitattributes/dir.go:126–128  ·  view source on GitHub ↗

LoadSystemPatterns loads gitattributes patterns and attributes from the gitattributes 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.attributesfile property is not declared, the function will return nil. If the fil

(fs billy.Filesystem)

Source from the content-addressed store, hash-verified

124// the function will return nil. The function assumes fs is rooted at the root
125// filesystem.
126func LoadSystemPatterns(fs billy.Filesystem) (attributes []MatchAttribute, err error) {
127 return loadPatterns(fs, systemFile)
128}

Callers 1

Calls 1

loadPatternsFunction · 0.70

Tested by 1