-
Notifications
You must be signed in to change notification settings - Fork 398
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
Mismatched binary detection behaviour on diffs #991
Comments
then its probably better to post the repro there |
Thanks for the response, you're right. My C is rusty (pun intended), so it was quicker for me to write a reproducible in Rust first -- and since this library directly relies on the behaviour of |
people post the git2-rs based rust repros there too, don't be shy :) |
The |
Ah sorry! I did forget to push the changes, but they're there now, thanks 🙇 |
Hey 👋
I have a peculiar case that I've created a reproducible for. If you clone this repository https://github.com/FintanH/git2-binary-check and do
cargo run
, you'll get the following output:However, if you were to run
git diff 373b3404371e359404392aff715d504293112c8b abdedcec89e3c48ac520e4a96c7ea39364316b9e
, you'll get:It seems like
git2
, and possiblylibgit2
, are not detecting binary files in the same manner as thegit
CLI is doing.I checked on
git2-0.17.0
andgit2-018.1
and mygit
version isgit version 2.40.1
.Let me know if I can do anything else to help track down this discrepancy.
The text was updated successfully, but these errors were encountered: