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