(filename string)
| 26 | } |
| 27 | |
| 28 | func GetFileDiff(filename string) (string, error) { |
| 29 | diff, err := exec.Command("git", "diff", "--cached", "--", filename).Output() |
| 30 | if err != nil { |
| 31 | return "", fmt.Errorf("error getting diff for %s: %v", filename, err) |
| 32 | } |
| 33 | return string(diff), nil |
| 34 | } |
| 35 | |
| 36 | func ShouldIgnoreFile(filename string, cfg config.Config) bool { |
| 37 | for _, ignoredFile := range cfg.IgnoredFiles { |
no outgoing calls
no test coverage detected