summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-02-09 17:14:01 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2023-02-12 22:02:00 +0000
commit8eadeedee46e8cd4ac2364134b4696b1473d17dc (patch)
treeaaae8940509e446ade6e2fa8c695ecc11248c86d /include
parentaf20d13b18dbab4de9f244402c255bc85e907ac1 (diff)
downloadlibgit2-8eadeedee46e8cd4ac2364134b4696b1473d17dc.tar.gz
repo: take an oid_type when initializing
Diffstat (limited to 'include')
-rw-r--r--include/git2/repository.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h
index 9b56599d7..04c240d24 100644
--- a/include/git2/repository.h
+++ b/include/git2/repository.h
@@ -351,6 +351,15 @@ typedef struct {
* pointing to this URL.
*/
const char *origin_url;
+
+#ifdef GIT_EXPERIMENTAL_SHA256
+ /**
+ *
+ * Type of object IDs to use for this repository, or 0 for
+ * default (currently SHA1).
+ */
+ git_oid_t oid_type;
+#endif
} git_repository_init_options;
#define GIT_REPOSITORY_INIT_OPTIONS_VERSION 1