We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e95fcaa commit 5cc40d9Copy full SHA for 5cc40d9
merge/conflict.go
@@ -95,6 +95,14 @@ func (c Conflicts) Equals(c2 Conflicts) bool {
95
return true
96
}
97
98
+func (c Conflicts) ToSet() *fieldpath.Set {
99
+ set := fieldpath.NewSet()
100
+ for _, conflict := range []Conflict(c) {
101
+ set.Insert(conflict.Path)
102
+ }
103
+ return set
104
+}
105
+
106
// ConflictsFromManagers creates a list of conflicts given Managers sets.
107
func ConflictsFromManagers(sets fieldpath.ManagedFields) Conflicts {
108
conflicts := []Conflict{}
0 commit comments