file not in a git repository, something similar to what git hash-object <filename> does, in a safe manner? The git2 package doesn't provide a method to directly get the hash without initialising a repo.
you can initialize it without cloning and then getting the indexing data with shadowing
Обсуждают сегодня