-
-
Notifications
You must be signed in to change notification settings - Fork 385
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
Flags for find_similar #394
Comments
Created pull request #396 that relates to this issue, but it doesn't actually solve it. |
Ok, I've been debugging for a while now and I can't really seem to figure this out. I checked out libgit2 and added a printf statement in the function that actually does the diffing (in file However, it seems that the Does anyone have an idea on what to check next? Edit: Figured it out. The behaviour was correct all along, I was just testing it with files that were too small to compute a similarity score on. |
The libgit2 api allows you to set, among others, the
rename_threshold
when callinggit_diff_find_similar
but this doesn't seem to be supported in pygit2.Would be great if this could be implemented!
I tried to change it myself but I can't seem to do this without getting a "ValueError: Invalid version 0 on git_diff_find_options" error when trying to call it... Probably just my lack of C++ skills. Diff of my changes is below.
The text was updated successfully, but these errors were encountered: