diff options
author | Edward Thomson <ethomson@vercel.com> | 2023-02-23 13:56:00 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@vercel.com> | 2023-02-23 13:56:00 +0000 |
commit | 7afc57c6527bbeda0a5b66b40f733f176e85edb4 (patch) | |
tree | d2cdae31e644e86695c0e067cc1d5b53941d3e85 /include/git2 | |
parent | c9387a61656cd666d76a0491f6839c1a32835ca0 (diff) | |
download | libgit2-ethomson/sha256_fix.tar.gz |
betterethomson/sha256_fix
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/odb_backend.h | 2 | ||||
-rw-r--r-- | include/git2/sys/odb_backend.h | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/git2/odb_backend.h b/include/git2/odb_backend.h index 4d0559ec0..699f96fb8 100644 --- a/include/git2/odb_backend.h +++ b/include/git2/odb_backend.h @@ -171,8 +171,6 @@ struct git_odb_stream { unsigned int mode; void *hash_ctx; - git_oid_t oid_type; - git_object_size_t declared_size; git_object_size_t received_bytes; diff --git a/include/git2/sys/odb_backend.h b/include/git2/sys/odb_backend.h index c42abd370..2d6458bf6 100644 --- a/include/git2/sys/odb_backend.h +++ b/include/git2/sys/odb_backend.h @@ -26,6 +26,11 @@ GIT_BEGIN_DECL */ struct git_odb_backend { unsigned int version; + +#ifdef GIT_EXPERIMENTAL_SHA256 + git_oid_t oid_type; +#endif + git_odb *odb; /* read and read_prefix each return to libgit2 a buffer which |