MCPcopy Create free account
hub / github.com/LegacyCodeHQ/clarity-cli / absolutize

Function absolutize

vcs/git/git_diff_lines.go:115–121  ·  view source on GitHub ↗
(repoRoot string, diffs map[string]vcs.FileDiff)

Source from the content-addressed store, hash-verified

113}
114
115func 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.

Callers 2

GetCommitFileDiffsFunction · 0.85
GetCommitRangeFileDiffsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected