summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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