diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-01-26 13:10:01 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-01-27 16:48:12 -0500 |
commit | 01ac19e531df5f93fb6c32e1d6f0798d96583838 (patch) | |
tree | bb82af3a977d644645d69e5aab2787f59050c482 /include/git2 | |
parent | be657b114eff8d00349480788753a06a9b426394 (diff) | |
download | libgit2-ethomson/sha256_loose.tar.gz |
odb_loose: SHA256 support for loose object storageethomson/sha256_loose
Teach the loose object database how to cope with SHA256 objects.
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/odb_backend.h | 10 |
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 } |