Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-11-19 08:38:08 +0400
committerBen Straub <bs@github.com>2012-11-28 01:17:45 +0400
commit2508cc66eb91597b12dc19721d9cea1f06e72107 (patch)
tree89e0ec2a924d9dc6b66461f462afbb999045ad27 /src/reset.c
parent469827812f95e979e3c6468567b2c9ed138a9849 (diff)
Rename ref and reflog apis for consistency
Diffstat (limited to 'src/reset.c')
-rw-r--r--src/reset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reset.c b/src/reset.c
index 8f470b26a..928a2bc8c 100644
--- a/src/reset.c
+++ b/src/reset.c
@@ -41,14 +41,14 @@ static int update_head(git_repository *repo, git_object *commit)
if ((error = git_reference_lookup(&head, repo, GIT_HEAD_FILE)) < 0)
goto cleanup;
- if ((error = git_reference_create_oid(
+ if ((error = git_reference_create(
&target,
repo,
- git_reference_target(head),
+ git_reference_symbolic_target(head),
git_object_id(commit), 0)) < 0)
goto cleanup;
} else {
- if ((error = git_reference_set_oid(head, git_object_id(commit))) < 0)
+ if ((error = git_reference_set_target(head, git_object_id(commit))) < 0)
goto cleanup;
}