midx: support sha256

This commit is contained in:
Edward Thomson
2023-04-10 09:47:05 +01:00
parent 87727409b5
commit be484d355b
5 changed files with 96 additions and 36 deletions

View File

@@ -29,7 +29,11 @@ GIT_BEGIN_DECL
*/
GIT_EXTERN(int) git_midx_writer_new(
git_midx_writer **out,
const char *pack_dir);
const char *pack_dir
#ifdef GIT_EXPERIMENTAL_SHA256
, git_oid_t oid_type
#endif
);
/**
* Free the multi-pack-index writer and its resources.