diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2026-01-06 19:10:53 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2026-01-09 14:28:59 +0000 |
| commit | a45480436715f68eac7cc949da964ee2b73ef172 (patch) | |
| tree | a78ef367de0d6ccd99e45571eee6029d7c5dedae /pkg/manager | |
| parent | 9ee25c60da3366005e31dedd1574732f63338151 (diff) | |
pkg/vcs: extend ParseGitDiff
Return not just the modified files, but also their blob hashes.
Diffstat (limited to 'pkg/manager')
| -rw-r--r-- | pkg/manager/diff.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/manager/diff.go b/pkg/manager/diff.go index 4ad759244..88710a59b 100644 --- a/pkg/manager/diff.go +++ b/pkg/manager/diff.go @@ -870,7 +870,9 @@ func affectedFiles(cfg *mgrconfig.Config, gitPatches [][]byte) (direct, transiti transitiveMap := make(map[string]struct{}) var allFiles []string for _, patch := range gitPatches { - allFiles = append(allFiles, vcs.ParseGitDiff(patch)...) + for _, diff := range vcs.ParseGitDiff(patch) { + allFiles = append(allFiles, diff.Name) + } } for _, file := range allFiles { directMap[file] = struct{}{} |
