code: func GetAttributeFilter(workingDir, gitDir string) *filepathfilter.Filter {
  	paths := GetAttributePaths(gitattr.NewMacroProcessor(), workingDir, gitDir)
  	patterns := make([]filepathfilter.Pattern, 0, len(paths))
  
  	for _, path := range paths {
  		// Convert all separators to `/` before creating a pattern to
  		// avoid characters being escaped in situations like `subtree\*.md`
  		patterns = append(patterns, filepathfilter.NewPattern(filepath.ToSlash(path.Path)))
  	}
  
  	return filepathfilter.NewFromPatterns(patterns, nil)
  }
docs: // GetAttributeFilter returns a list of entries in .gitattributes which are
  // configured with the filter=lfs attribute as a file path filter which
  // file paths can be matched against
  // workingDir is the root of the working copy
  // gitDir is the root of the git repo