-
Notifications
You must be signed in to change notification settings - Fork 378
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
diff: leverage BStr for debug printing #4082
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, BStr seems like it should simplify diffing and conflicts, or at least debugging of them. Thank you!
Also, this is not related directly to this PR, but I should share the successor to #3977 soon. It seems to make a lot of sense to use the |
I'm going to replace some Debug impls with BStr, and we already depend on "bstr" through "gix".
This helps migrate internal [u8] variables to BStr. b"" literals in tests are changed to &str to get around potential type incompatibility between &[u8; N].
For the same reason as the previous patch. I'm going to make DiffHunk leverage BStr wrapper instead of custom Debug impl. b"" literals in tests are changed to &str to get around type incompatibility between &[u8; N].
Checklist
If applicable:
CHANGELOG.md