summaryrefslogtreecommitdiff
path: root/tests/libgit2/diff/patchid.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-04-07 15:28:58 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2023-04-10 14:21:16 +0100
commitdb2a794dda2b6f92291b3758507f863f39314c72 (patch)
tree53c5b2d77c6c38cf26fecc90e91809df0397fa46 /tests/libgit2/diff/patchid.c
parent7f70484799df14dbc666b3c395ded690d1a5a402 (diff)
downloadlibgit2-db2a794dda2b6f92291b3758507f863f39314c72.tar.gz
diff: parse patches with sha256
Diffstat (limited to 'tests/libgit2/diff/patchid.c')
-rw-r--r--tests/libgit2/diff/patchid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/libgit2/diff/patchid.c b/tests/libgit2/diff/patchid.c
index 1cc368e21..91807e7b7 100644
--- a/tests/libgit2/diff/patchid.c
+++ b/tests/libgit2/diff/patchid.c
@@ -1,5 +1,6 @@
#include "clar_libgit2.h"
#include "patch/patch_common.h"
+#include "diff_helpers.h"
static void verify_patch_id(const char *diff_content, const char *expected_id)
{
@@ -7,7 +8,7 @@ static void verify_patch_id(const char *diff_content, const char *expected_id)
git_diff *diff;
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(diff_from_buffer(&diff, diff_content, strlen(diff_content)));
cl_git_pass(git_diff_patchid(&actual_oid, diff, NULL));
cl_assert_equal_oid(&expected_oid, &actual_oid);