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 /examples | |
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 'examples')
-rw-r--r-- | examples/for-each-ref.c | 2 | ||||
-rw-r--r-- | examples/general.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/for-each-ref.c b/examples/for-each-ref.c index a8ceaaff9..25d029435 100644 --- a/examples/for-each-ref.c +++ b/examples/for-each-ref.c @@ -10,7 +10,7 @@ static int show_ref(git_reference *ref, void *data) const git_oid *oid; git_object *obj; - if (git_reference_type(ref) == GIT_REF_SYMBOLIC) + if (git_reference_type(ref) == GIT_REFERENCE_SYMBOLIC) check_lg2(git_reference_resolve(&resolved, ref), "Unable to resolve symbolic reference", git_reference_name(ref)); diff --git a/examples/general.c b/examples/general.c index 15b415a98..fbd7bba71 100644 --- a/examples/general.c +++ b/examples/general.c @@ -692,12 +692,12 @@ static void reference_listing(git_repository *repo) git_reference_lookup(&ref, repo, refname); switch (git_reference_type(ref)) { - case GIT_REF_OID: + case GIT_REFERENCE_DIRECT: git_oid_fmt(oid_hex, git_reference_target(ref)); printf("%s [%s]\n", refname, oid_hex); break; - case GIT_REF_SYMBOLIC: + case GIT_REFERENCE_SYMBOLIC: printf("%s => %s\n", refname, git_reference_symbolic_target(ref)); break; default: |