Skip to content

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

@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