libgit2 / libgit2sharp

Git + .NET = ❤
http://libgit2.github.com
MIT License
3.12k stars 878 forks source link

[Question] Find Files by Hash #2047

Open workgroupengineering opened 1 year ago

workgroupengineering commented 1 year ago

Hi, I've tried to search but can't find anything.

I would like to avoid duplicate files with different names. To do this. I would like to search the repository if there is a file with the specified hash of.

Best regards.

P.S. Why didn't you open the discussion on GitHub? false problems like this would be avoided.

workgroupengineering commented 2 months ago

I found exits https://git-scm.com/docs/git-hash-object. How do it in libgit2sharp?