mirror of https://github.com/kubernetes/kops.git
Enable diff semantic cleanup
This commit is contained in:
parent
d4fd866ce3
commit
e046a770a9
|
@ -78,8 +78,9 @@ type lineRecord struct {
|
|||
func buildDiffLines(lString, rString string) []lineRecord {
|
||||
dmp := diffmatchpatch.New()
|
||||
diffs := dmp.DiffMain(lString, rString, false)
|
||||
// No need to cleanup, we're going to do a line based diff
|
||||
//diffs = dmp.DiffCleanupSemantic(diffs)
|
||||
|
||||
// We do need to cleanup, as otherwise we get some spurious changes on complex diffs
|
||||
diffs = dmp.DiffCleanupSemantic(diffs)
|
||||
|
||||
l := ""
|
||||
r := ""
|
||||
|
|
Loading…
Reference in New Issue