code: func LoadGlobalPatterns(fs billy.Filesystem) (attributes []MatchAttribute, err error) {
  	usr, err := user.Current()
  	if err != nil {
  		return
  	}
  
  	return loadPatterns(fs, fs.Join(usr.HomeDir, gitconfigFile))
  }
docs: // LoadGlobalPatterns loads gitattributes patterns and attributes from the
  // gitattributes file declared in a user's ~/.gitconfig file.  If the
  // ~/.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 file pointed to by the core.attributesfile property does not exist,
  // the function will return nil. The function assumes fs is rooted at the root
  // filesystem.