(repoRoot string, diffs map[string]vcs.FileDiff)
| 113 | } |
| 114 | |
| 115 | func absolutize(repoRoot string, diffs map[string]vcs.FileDiff) map[string]vcs.FileDiff { |
| 116 | out := make(map[string]vcs.FileDiff, len(diffs)) |
| 117 | for relPath, fd := range diffs { |
| 118 | out[filepath.Join(repoRoot, relPath)] = fd |
| 119 | } |
| 120 | return out |
| 121 | } |
| 122 | |
| 123 | // parseUnifiedDiff walks `git diff --unified=0` output and emits per-file |
| 124 | // FileDiff structures with 1-indexed line numbers. |
no outgoing calls
no test coverage detected