summaryrefslogtreecommitdiff
path: root/include/git2/sys/midx.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-04-22 23:09:32 +0100
committerGitHub <noreply@github.com>2023-04-22 23:09:32 +0100
commit8a62616f43fe5ea37d41296f40293ff97aa88cfa (patch)
treeedb5683195bb8989814ca610e6745745b361efb9 /include/git2/sys/midx.h
parentabb0b313172d1b4477fe0c6e88102ce4bb8db90c (diff)
parentb899fda3d88dc92f50e73544fb7524a1c3c70354 (diff)
downloadlibgit2-8a62616f43fe5ea37d41296f40293ff97aa88cfa.tar.gz
Merge pull request #6549 from libgit2/ethomson/sha256_experimental
sha256: less hardcoded SHA1 types and lengths
Diffstat (limited to 'include/git2/sys/midx.h')
-rw-r--r--include/git2/sys/midx.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/git2/sys/midx.h b/include/git2/sys/midx.h
index e3d749829..3a87484d2 100644
--- a/include/git2/sys/midx.h
+++ b/include/git2/sys/midx.h
@@ -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.