Skip to content
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

How to add more context to Diff output? #358

Open
freakytoad1 opened this issue Apr 24, 2024 · 0 comments
Open

How to add more context to Diff output? #358

freakytoad1 opened this issue Apr 24, 2024 · 0 comments

Comments

@freakytoad1
Copy link

freakytoad1 commented Apr 24, 2024

I like the default output of the .Diff() function but would love more lines of context around the differences. After looking through different examples, I can't figure out how to do this. Digging into the code of cmp, it looks like the context is hardcoded to 2

const numContextRecords = 2

Is there a way to override this value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant