Skip to content
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

Add Repository.hashfile(path) which maps libgit2 git_repository_hashfile #1190

Merged
merged 4 commits into from
Feb 13, 2023

Conversation

muhqu
Copy link
Contributor

@muhqu muhqu commented Feb 13, 2023

Might serve as a fix for #1189.

  • Added APIs
    • Repository.hashfile(path: str) -> Oid
  • Added unit tests
    • test/test_repository.py::test_repo_hashfile_same_hash
    • test/test_repository.py::test_repo_hashfile_crlf_normalization
    • test/test_repository.py::test_repo_hashfile_no_normalization
    • test/test_repository.py::test_repo_hashfile_crlf_normalization_error

src/repository.c Outdated Show resolved Hide resolved
@muhqu muhqu marked this pull request as ready for review February 13, 2023 16:16
@jdavid jdavid merged commit 3c24718 into libgit2:master Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants