fix: log discovered paths
This commit is contained in:
		@ -153,12 +153,16 @@ func parseExcludesFile(excludesfile string) ([]gitignore.Pattern, error) {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	var pathsRaw []string
 | 
			
		||||
	for _, s := range strings.Split(string(data), "\n") {
 | 
			
		||||
		if !strings.HasPrefix(s, "#") && len(strings.TrimSpace(s)) > 0 {
 | 
			
		||||
			pathsRaw = append(pathsRaw, s)
 | 
			
		||||
			ps = append(ps, gitignore.ParsePattern(s, nil))
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	logrus.Debugf("read global ignore paths: %s", strings.Join(pathsRaw, " "))
 | 
			
		||||
 | 
			
		||||
	return ps, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user