summaryrefslogtreecommitdiff
path: root/examples/general.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-01-17 10:47:32 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-17 11:03:19 +0000
commit83151018ef0228b53739cbc2bc785a673752c349 (patch)
tree5e616319a7cf561021bf4baf2fb73e6b5dc9fbf7 /examples/general.c
parentcd350852206481e984f7847a903de8d350ad7bf1 (diff)
downloadlibgit2-83151018ef0228b53739cbc2bc785a673752c349.tar.gz
object_type: convert final internal users to new namesethomson/git_obj
Update some missed types that were continuing to use the old `GIT_OBJ` names.
Diffstat (limited to 'examples/general.c')
-rw-r--r--examples/general.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/general.c b/examples/general.c
index 15b415a98..c1c8c0c87 100644
--- a/examples/general.c
+++ b/examples/general.c
@@ -241,7 +241,7 @@ static void object_database(git_repository *repo, git_oid *oid)
* we'll write a new blob object that just contains a simple string.
* Notice that we have to specify the object type as the `git_otype` enum.
*/
- git_odb_write(oid, odb, "test data", sizeof("test data") - 1, GIT_OBJ_BLOB);
+ git_odb_write(oid, odb, "test data", sizeof("test data") - 1, GIT_OBJECT_BLOB);
/**
* Now that we've written the object, we can check out what SHA1 was
@@ -441,7 +441,7 @@ static void tag_parsing(git_repository *repo)
*/
git_tag_target((git_object **)&commit, tag);
name = git_tag_name(tag); /* "test" */
- type = git_tag_target_type(tag); /* GIT_OBJ_COMMIT (otype enum) */
+ type = git_tag_target_type(tag); /* GIT_OBJECT_COMMIT (object_t enum) */
message = git_tag_message(tag); /* "tag message\n" */
printf("Tag Name: %s\nTag Type: %s\nTag Message: %s\n",
name, git_object_type2string(type), message);