summaryrefslogtreecommitdiff
path: root/src/branch.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-01-17 00:32:31 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-17 10:32:29 +0000
commited8cfbf04181d6fc229582a09c5c7657a53cd2e3 (patch)
treeb0c4c06caecb92b497fef1567fe44f1808a00e7c /src/branch.c
parent87fe57889192e8c83d8da8eb916b31bed6931a89 (diff)
downloadlibgit2-ethomson/git_ref.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 'src/branch.c')
-rw-r--r--src/branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/branch.c b/src/branch.c
index e72d470bb..c5d915247 100644
--- a/src/branch.c
+++ b/src/branch.c
@@ -141,7 +141,7 @@ static int branch_equals(git_repository *repo, const char *path, void *payload)
int equal = 0;
if (git_reference__read_head(&head, repo, path) < 0 ||
- git_reference_type(head) != GIT_REF_SYMBOLIC)
+ git_reference_type(head) != GIT_REFERENCE_SYMBOLIC)
goto done;
equal = !git__strcmp(head->target.symbolic, branch->name);