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