repo: don't require oid_type to wrap_odb

The `wrap_odb` function doesn't need to know the OID types in the object
database; the object database already knows the type.
This commit is contained in:
Edward Thomson
2024-12-16 17:25:12 +00:00
parent cefcabfcc1
commit 43c31ecc42
6 changed files with 6 additions and 41 deletions

View File

@@ -53,15 +53,6 @@ GIT_EXTERN(int) git_repository_open(git_repository **out, const char *path);
*/
GIT_EXTERN(int) git_repository_open_from_worktree(git_repository **out, git_worktree *wt);
#ifdef GIT_EXPERIMENTAL_SHA256
GIT_EXTERN(int) git_repository_wrap_odb(
git_repository **out,
git_odb *odb,
const git_odb_options *opts);
#else
/**
* Create a "fake" repository to wrap an object database
*
@@ -77,8 +68,6 @@ GIT_EXTERN(int) git_repository_wrap_odb(
git_repository **out,
git_odb *odb);
#endif
/**
* Look for a git repository and copy its path in the given buffer.
* The lookup start from base_path and walk across parent directories