Skip to content

Commit 5c84e78

Browse files
authored
feat: use upstream settings for diff (#939)
This way the diffs are more readable
1 parent 89dc710 commit 5c84e78

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

diff/report.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,12 @@ func printDyffReport(r *Report, to io.Writer) {
110110

111111
currentInputFile, newInputFile, _ := ytbx.LoadFiles(currentFile.Name(), newFile.Name())
112112

113-
report, _ := dyff.CompareInputFiles(currentInputFile, newInputFile)
113+
report, _ := dyff.CompareInputFiles(
114+
currentInputFile, newInputFile,
115+
dyff.IgnoreWhitespaceChanges(true),
116+
dyff.KubernetesEntityDetection(true),
117+
dyff.DetectRenames(true),
118+
)
114119
reportWriter := &dyff.HumanReport{
115120
Report: report,
116121
OmitHeader: true,

0 commit comments

Comments
 (0)