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/stash.c
parent469827812f95e979e3c6468567b2c9ed138a9849 (diff)
Rename ref and reflog apis for consistency
Diffstat (limited to 'src/stash.c')
-rw-r--r--src/stash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stash.c b/src/stash.c
index b74429aca..89e5ff330 100644
--- a/src/stash.c
+++ b/src/stash.c
@@ -98,7 +98,7 @@ static int retrieve_base_commit_and_message(
"%s: ",
git_reference_name(head) + strlen(GIT_REFS_HEADS_DIR));
- if (git_commit_lookup(b_commit, repo, git_reference_oid(head)) < 0)
+ if (git_commit_lookup(b_commit, repo, git_reference_target(head)) < 0)
goto cleanup;
if (append_commit_description(stash_message, *b_commit) < 0)
@@ -436,7 +436,7 @@ static int update_reflog(
git_reflog *reflog = NULL;
int error;
- if ((error = git_reference_create_oid(&stash, repo, GIT_REFS_STASH_FILE, w_commit_oid, 1)) < 0)
+ if ((error = git_reference_create(&stash, repo, GIT_REFS_STASH_FILE, w_commit_oid, 1)) < 0)
goto cleanup;
if ((error = git_reflog_read(&reflog, stash)) < 0)
@@ -603,8 +603,8 @@ int git_stash_foreach(
entry = git_reflog_entry_byindex(reflog, i);
if (callback(i,
- git_reflog_entry_msg(entry),
- git_reflog_entry_oidnew(entry),
+ git_reflog_entry_message(entry),
+ git_reflog_entry_id_new(entry),
payload)) {
error = GIT_EUSER;
goto cleanup;