diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2023-04-05 10:39:01 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2023-04-05 10:39:01 +0100 |
commit | 751887211b9f9fde4eff15018d2b524da55274d2 (patch) | |
tree | c59f9815cd971168a9bc2c90ef9a2066ebdd8d43 /tests/libgit2/diff/index.c | |
parent | f7fd9ce947fc2189ce80abc31fdc6077df94f73b (diff) | |
download | libgit2-ethomson/sha256_index.tar.gz |
index: add sha256 supportethomson/sha256_index
Diffstat (limited to 'tests/libgit2/diff/index.c')
-rw-r--r-- | tests/libgit2/diff/index.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/libgit2/diff/index.c b/tests/libgit2/diff/index.c index 5773b748e..b7866750b 100644 --- a/tests/libgit2/diff/index.c +++ b/tests/libgit2/diff/index.c @@ -1,5 +1,6 @@ #include "clar_libgit2.h" #include "diff_helpers.h" +#include "index.h" static git_repository *g_repo = NULL; @@ -278,7 +279,7 @@ void test_diff_index__to_index(void) git_diff *diff; diff_expects exp; - cl_git_pass(git_index_new(&old_index)); + cl_git_pass(git_index__new(&old_index, GIT_OID_SHA1)); old_tree = resolve_commit_oid_to_tree(g_repo, a_commit); cl_git_pass(git_index_read_tree(old_index, old_tree)); |