-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
question: have diff output ignore additions #318
Comments
Not really. The behavior of Functionally ignoring insertions implies an assymetric comparison, which is not something this package supports. Doing so would need to carefully think through the implications and how an asymmetric comparison would interact with existing |
@dsnet why is it renamed as x and y? I know many people do mistakes due to this, can't it be just got and want like in the shared example? |
From https:/google/go-cmp/blob/v0.5.9/cmp/compare.go#L113
Is there a way to ignore things added in
y
in the output? I realize I could post process the diff output and drop lines with+
but without the preceeding-
but wondering if there's a better way.The text was updated successfully, but these errors were encountered: