diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-17 00:32:31 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-17 10:32:29 +0000 |
commit | ed8cfbf04181d6fc229582a09c5c7657a53cd2e3 (patch) | |
tree | b0c4c06caecb92b497fef1567fe44f1808a00e7c /tests/refs/overwrite.c | |
parent | 87fe57889192e8c83d8da8eb916b31bed6931a89 (diff) | |
download | libgit2-ed8cfbf04181d6fc229582a09c5c7657a53cd2e3.tar.gz |
references: use new names in internal usageethomson/git_ref
Update internal usage to use the `git_reference` names for constants.
Diffstat (limited to 'tests/refs/overwrite.c')
-rw-r--r-- | tests/refs/overwrite.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/refs/overwrite.c b/tests/refs/overwrite.c index 2e499b75e..1826b1257 100644 --- a/tests/refs/overwrite.c +++ b/tests/refs/overwrite.c @@ -33,7 +33,7 @@ void test_refs_overwrite__symbolic(void) /* Ensure it points to the right place*/ cl_git_pass(git_reference_lookup(&ref, g_repo, ref_name)); - cl_assert(git_reference_type(ref) & GIT_REF_SYMBOLIC); + cl_assert(git_reference_type(ref) & GIT_REFERENCE_SYMBOLIC); cl_assert_equal_s(git_reference_symbolic_target(ref), ref_branch_name); git_reference_free(ref); @@ -44,7 +44,7 @@ void test_refs_overwrite__symbolic(void) /* Ensure it points to the right place */ cl_git_pass(git_reference_lookup(&ref, g_repo, ref_name)); - cl_assert(git_reference_type(ref) & GIT_REF_SYMBOLIC); + cl_assert(git_reference_type(ref) & GIT_REFERENCE_SYMBOLIC); cl_assert_equal_s(git_reference_symbolic_target(ref), ref_master_name); git_reference_free(ref); @@ -58,7 +58,7 @@ void test_refs_overwrite__object_id(void) git_oid id; cl_git_pass(git_reference_lookup(&ref, g_repo, ref_master_name)); - cl_assert(git_reference_type(ref) & GIT_REF_OID); + cl_assert(git_reference_type(ref) & GIT_REFERENCE_DIRECT); git_oid_cpy(&id, git_reference_target(ref)); git_reference_free(ref); @@ -67,7 +67,7 @@ void test_refs_overwrite__object_id(void) git_reference_free(ref); cl_git_pass(git_reference_lookup(&ref, g_repo, ref_test_name)); - cl_assert(git_reference_type(ref) & GIT_REF_OID); + cl_assert(git_reference_type(ref) & GIT_REFERENCE_DIRECT); git_oid_cpy(&id, git_reference_target(ref)); git_reference_free(ref); @@ -90,7 +90,7 @@ void test_refs_overwrite__object_id_with_symbolic(void) git_oid id; cl_git_pass(git_reference_lookup(&ref, g_repo, ref_master_name)); - cl_assert(git_reference_type(ref) & GIT_REF_OID); + cl_assert(git_reference_type(ref) & GIT_REFERENCE_DIRECT); git_oid_cpy(&id, git_reference_target(ref)); git_reference_free(ref); @@ -102,7 +102,7 @@ void test_refs_overwrite__object_id_with_symbolic(void) /* Ensure it points to the right place */ cl_git_pass(git_reference_lookup(&ref, g_repo, ref_name)); - cl_assert(git_reference_type(ref) & GIT_REF_SYMBOLIC); + cl_assert(git_reference_type(ref) & GIT_REFERENCE_SYMBOLIC); cl_assert_equal_s(git_reference_symbolic_target(ref), ref_master_name); git_reference_free(ref); @@ -115,7 +115,7 @@ void test_refs_overwrite__symbolic_with_object_id(void) git_oid id; cl_git_pass(git_reference_lookup(&ref, g_repo, ref_master_name)); - cl_assert(git_reference_type(ref) & GIT_REF_OID); + cl_assert(git_reference_type(ref) & GIT_REFERENCE_DIRECT); git_oid_cpy(&id, git_reference_target(ref)); git_reference_free(ref); @@ -129,7 +129,7 @@ void test_refs_overwrite__symbolic_with_object_id(void) /* Ensure it points to the right place */ cl_git_pass(git_reference_lookup(&ref, g_repo, ref_name)); - cl_assert(git_reference_type(ref) & GIT_REF_OID); + cl_assert(git_reference_type(ref) & GIT_REFERENCE_DIRECT); cl_assert_equal_oid(&id, git_reference_target(ref)); git_reference_free(ref); |