code: func trackedFromExportFilter(filter *filepathfilter.Filter) *tools.OrderedSet {
  	tracked := tools.NewOrderedSet()
  
  	for _, include := range filter.Include() {
  		tracked.Add(fmt.Sprintf("%s text !filter !merge !diff", escapeAttrPattern(include)))
  	}
  
  	for _, exclude := range filter.Exclude() {
  		tracked.Add(fmt.Sprintf("%s filter=lfs diff=lfs merge=lfs -text", escapeAttrPattern(exclude)))
  	}
  
  	return tracked
  }
docs: // trackedFromExportFilter returns an ordered set of strings where each entry
  // is a line we intend to place in the .gitattributes file. It adds/removes the
  // filter/diff/merge=lfs attributes based on patterns included/excluded in the
  // given filter. Since `migrate export` removes files from Git LFS, it will
  // remove attributes for included files, and add attributes for excluded files