summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-01-26 13:10:01 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2022-06-20 17:09:47 -0400
commit04f34688c43d28d1fa110df7d32e8665232199ff (patch)
treee662e0196eb3c29747732294e896b44f178caa9e /include
parent162c996b19398ab1fb5953318f25da8335380f4a (diff)
downloadlibgit2-04f34688c43d28d1fa110df7d32e8665232199ff.tar.gz
odb_loose: SHA256 support for loose object storage
Teach the loose object database how to cope with SHA256 objects.
Diffstat (limited to 'include')
-rw-r--r--include/git2/odb_backend.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/git2/odb_backend.h b/include/git2/odb_backend.h
index d65aeec5a..092eb91ae 100644
--- a/include/git2/odb_backend.h
+++ b/include/git2/odb_backend.h
@@ -59,13 +59,19 @@ typedef struct {
/** Permissions to use creating a file or 0 for defaults */
unsigned int file_mode;
+
+ /**
+ * Type of object IDs to use for this object database, or
+ * 0 for default (currently SHA1).
+ */
+ git_oid_t oid_type;
} git_odb_backend_loose_options;
/* The current version of the diff options structure */
#define GIT_ODB_BACKEND_LOOSE_OPTIONS_VERSION 1
-/* Stack initializer for diff options. Alternatively use
- * `git_diff_options_init` programmatic initialization.
+/* Stack initializer for odb loose backend options. Alternatively use
+ * `git_odb_backend_loose_options_init` programmatic initialization.
*/
#define GIT_ODB_BACKEND_LOOSE_OPTIONS_INIT \
{ GIT_ODB_BACKEND_LOOSE_OPTIONS_VERSION, 0, -1 }