summaryrefslogtreecommitdiff
path: root/tests/index
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-11-28 14:26:57 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2018-12-01 11:54:57 +0000
commit168fe39bea3368972a8b1a33d5908e73bc790c18 (patch)
treec6d07340e2d8d2d66091c44c7763f3e1823acca2 /tests/index
parent18e71e6d597abe6c7feb666429c921bd19dc0ba8 (diff)
downloadlibgit2-168fe39bea3368972a8b1a33d5908e73bc790c18.tar.gz
object_type: use new enumeration namesethomson/index_fixes
Use the new object_type enumeration names within the codebase.
Diffstat (limited to 'tests/index')
-rw-r--r--tests/index/collision.c2
-rw-r--r--tests/index/filemodes.c2
-rw-r--r--tests/index/names.c2
-rw-r--r--tests/index/reuc.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/index/collision.c b/tests/index/collision.c
index e9af2cfe4..18d2664f0 100644
--- a/tests/index/collision.c
+++ b/tests/index/collision.c
@@ -13,7 +13,7 @@ void test_index_collision__initialize(void)
cl_git_pass(git_repository_odb(&g_odb, g_repo));
cl_git_pass(git_repository_index(&g_index, g_repo));
- cl_git_pass(git_odb_write(&g_empty_id, g_odb, "", 0, GIT_OBJ_BLOB));
+ cl_git_pass(git_odb_write(&g_empty_id, g_odb, "", 0, GIT_OBJECT_BLOB));
}
void test_index_collision__cleanup(void)
diff --git a/tests/index/filemodes.c b/tests/index/filemodes.c
index 4e5a6df3b..f2ca4564b 100644
--- a/tests/index/filemodes.c
+++ b/tests/index/filemodes.c
@@ -247,7 +247,7 @@ void test_index_filemodes__invalid(void)
GIT_INDEX_ENTRY_STAGE_SET(&entry, 0);
entry.path = "foo";
- entry.mode = GIT_OBJ_BLOB;
+ entry.mode = GIT_OBJECT_BLOB;
git_oid_cpy(&entry.id, &dummy->id);
cl_git_fail(git_index_add(index, &entry));
diff --git a/tests/index/names.c b/tests/index/names.c
index e36a66740..369318b03 100644
--- a/tests/index/names.c
+++ b/tests/index/names.c
@@ -157,7 +157,7 @@ void test_index_names__cleaned_on_checkout_tree(void)
test_index_names__add();
cl_git_pass(git_reference_name_to_id(&oid, repo, "refs/heads/master"));
- cl_git_pass(git_object_lookup(&obj, repo, &oid, GIT_OBJ_ANY));
+ cl_git_pass(git_object_lookup(&obj, repo, &oid, GIT_OBJECT_ANY));
cl_git_pass(git_checkout_tree(repo, obj, &opts));
cl_assert_equal_sz(0, git_index_name_entrycount(repo_index));
diff --git a/tests/index/reuc.c b/tests/index/reuc.c
index 73eaf9ef0..1f95c4136 100644
--- a/tests/index/reuc.c
+++ b/tests/index/reuc.c
@@ -346,7 +346,7 @@ void test_index_reuc__cleaned_on_checkout_tree(void)
test_index_reuc__add();
cl_git_pass(git_reference_name_to_id(&oid, repo, "refs/heads/master"));
- cl_git_pass(git_object_lookup(&obj, repo, &oid, GIT_OBJ_ANY));
+ cl_git_pass(git_object_lookup(&obj, repo, &oid, GIT_OBJECT_ANY));
cl_git_pass(git_checkout_tree(repo, obj, &opts));
cl_assert(reuc_entry_exists() == false);