Open bsidhom opened 4 months ago
Since this was a breaking change, I had to add let filename = String::from_utf8_lossy(entry.name_bytes());
to the callback to get the example working.
Thanks! Can the callback take a CStr
instead? AFAIK, the value isn't an arbitrary slice of bytes since it cannot contain a null.
Fixes https://github.com/rust-lang/git2-rs/issues/1033.
Here's an example run of the example from that issue, but with the fix:
As noted in that issue, I'm not sure if a breaking change is acceptable in this case (version is below 1 and it seems to be trying to match libgit2 as closely as possible, so I assume this is fine).