summaryrefslogtreecommitdiff
path: root/tests/libgit2/diff/patchid.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-07-13 22:25:11 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2022-07-13 22:50:33 -0400
commitb43567d655b6fbc562a165095a6980d19c4ae278 (patch)
treeee84020f9f2c9f53a1f11656e2cd1205502cda48 /tests/libgit2/diff/patchid.c
parent433a133402fae298f8ee7613bcfd997c2712d269 (diff)
downloadlibgit2-b43567d655b6fbc562a165095a6980d19c4ae278.tar.gz
sha256: indirection for experimental functions
The experimental function signature is only available when `GIT_EXPERIMENTAL_SHA256` is enabled.
Diffstat (limited to 'tests/libgit2/diff/patchid.c')
-rw-r--r--tests/libgit2/diff/patchid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libgit2/diff/patchid.c b/tests/libgit2/diff/patchid.c
index a79a425f9..1cc368e21 100644
--- a/tests/libgit2/diff/patchid.c
+++ b/tests/libgit2/diff/patchid.c
@@ -6,7 +6,7 @@ static void verify_patch_id(const char *diff_content, const char *expected_id)
git_oid expected_oid, actual_oid;
git_diff *diff;
- cl_git_pass(git_oid_fromstr(&expected_oid, expected_id, GIT_OID_SHA1));
+ cl_git_pass(git_oid__fromstr(&expected_oid, expected_id, GIT_OID_SHA1));
cl_git_pass(git_diff_from_buffer(&diff, diff_content, strlen(diff_content)));
cl_git_pass(git_diff_patchid(&actual_oid, diff, NULL));