(stdout []byte)
| 346 | } |
| 347 | |
| 348 | func parseNonEmptyLines(stdout []byte) []string { |
| 349 | var files []string |
| 350 | for _, line := range strings.Split(string(stdout), "\n") { |
| 351 | if line = strings.TrimSpace(line); line != "" { |
| 352 | files = append(files, line) |
| 353 | } |
| 354 | } |
| 355 | return files |
| 356 | } |
| 357 | |
| 358 | // GetFileContentFromCommit reads the content of a file at a specific commit |
| 359 | // using 'git show commit:path'. The filePath should be relative to the repository root. |
no outgoing calls
no test coverage detected