summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-02-23 15:39:12 +0000
committerGitHub <noreply@github.com>2023-02-23 15:39:12 +0000
commit6f2eedb7eb58f5af2e96cafeae7261c07c928d89 (patch)
tree1a7aa6904bafbc9bde792b9fffc8dfe46738f2a8 /include
parentbf7d3888d5827fe36e8ef854a18e36376696f51c (diff)
parentd16b59c91e524bfa385b3db511da727a66694820 (diff)
downloadlibgit2-6f2eedb7eb58f5af2e96cafeae7261c07c928d89.tar.gz
Merge pull request #6499 from libgit2/ethomson/sha256_fix_2
odb: don't unconditionally add oid_type to stream
Diffstat (limited to 'include')
-rw-r--r--include/git2/odb_backend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/git2/odb_backend.h b/include/git2/odb_backend.h
index 4d0559ec0..12dd0fd38 100644
--- a/include/git2/odb_backend.h
+++ b/include/git2/odb_backend.h
@@ -171,7 +171,9 @@ struct git_odb_stream {
unsigned int mode;
void *hash_ctx;
+#ifdef GIT_EXPERIMENTAL_SHA256
git_oid_t oid_type;
+#endif
git_object_size_t declared_size;
git_object_size_t received_bytes;