aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/manager/diff.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/manager/diff.go')
-rw-r--r--pkg/manager/diff.go4
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{}{}