Closed kuahyeow closed 2 years ago
Thanks for reporting! It could make sense to only have an allow-list for common ruby extensions for the diff 🤔 My guess is that the slowness comes from Undercover::Changeset#full_diff
and it might be where that filtering is needed.
Thanks for the reply @grodowski - Yes, I agree the slowness will be from full_diff
possibly.
However, it looks like the file I was comparing is not a a binary, even though it's a PDF (it's some ASCII based format). So my original suggestion to exclude binary files is invalid. I'm happy to close this for now.
Normally:
With a binary file in the staging area:
Do you think it might be OK to add an option to exclude binary files ?