code: func GetRootAttributePaths(mp *gitattr.MacroProcessor, cfg Env) []AttributePath {
  	af, _ := cfg.Get("core.attributesfile")
  	af, err := tools.ExpandConfigPath(af, "git/attributes")
  	if err != nil {
  		return nil
  	}
  
  	if _, err := os.Stat(af); os.IsNotExist(err) {
  		return nil
  	}
  
  	// The working directory for the root gitattributes file is blank.
  	return attrPaths(mp, af, "", true)
  }
docs: // GetRootAttributePaths beahves as GetRootAttributePaths, and loads information
  // only from the global gitattributes file.