-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
Missing binding for libgit2 git_repository_hashfile #1189
Comments
Also … any idea why
I'm just wondering, as the git command |
No idea, that's probably a question for the libgit2 developers. About the release I first want to at least review PR #1191 |
Thanks! I've created libgit2/libgit2#6481 to seek for help from libgit2 developers. |
I was going to make the release when I saw that tests fail in AppVeyor. It's the tests of the hashfile function, could you have a look? https://ci.appveyor.com/project/jdavid/pygit2/builds/46329622/job/iv77sk6d184mg3ep |
@jdavid Oh no, I'm sorry for that... I've spent some time today to looks into it, but I have not built on windows for quite some time and so I'm still struggling to get a successful build running... 😞 I'm totally fine if you simply revert my merged PR to get the release out. And we can look into the issue in a new PR that again reverts the revert... does that make sense? 🤔 #1194 |
I'll see if I find time to look into the issue next week. |
The release can wait a little bit. There's a new version of libgit2, so I'll try to upgrade for the next release (though first libgit2/libgit2#6519 has to be fixed). |
While there is
pygit2.hashfile
which is a binding for libgit2git_odb_hashfile
, there appears to be no binding forgit_repository_hashfile
.The difference is that
git_repository_hashfile
calculates the file hash using repository filtering rules (e.g. crlf filters), whilegit_odb_hashfile
doesn't apply any filtering rules.Would it be possible to addhashfile
method topygit2.Repository
which maps togit_repository_hashfile
?Here is a PR that adds
hashfile(path)
method topygit2.Repository
class.The text was updated successfully, but these errors were encountered: