summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-11-14 19:41:09 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2013-11-23 14:55:02 +0100
commit13c9e44af9424e1fc478693f0d64fbf7082c9665 (patch)
treeee83aff81f705c882ce13ccc37006a733c4f54f4 /src
parenta57dd3b7a46c9a2f87f203f1ab372fa28e10e571 (diff)
downloadlibgit2-13c9e44af9424e1fc478693f0d64fbf7082c9665.tar.gz
reflog: remove git_reflog_append_to()
This was a convenience method for the refs front-end to do the reflog writing. This is now done in the backend and it has no more reason for being.
Diffstat (limited to 'src')
-rw-r--r--src/reflog.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/reflog.c b/src/reflog.c
index cebb87d86..9b2b201bf 100644
--- a/src/reflog.c
+++ b/src/reflog.c
@@ -230,22 +230,3 @@ int git_reflog_drop(git_reflog *reflog, size_t idx, int rewrite_previous_entry)
return 0;
}
-
-int git_reflog_append_to(git_repository *repo, const char *name, const git_oid *id,
- const git_signature *committer, const char *msg)
-{
- int error;
- git_reflog *reflog;
-
- if ((error = git_reflog_read(&reflog, repo, name)) < 0)
- return error;
-
- if ((error = git_reflog_append(reflog, id, committer, msg)) < 0)
- goto cleanup;
-
- error = git_reflog_write(reflog);
-
-cleanup:
- git_reflog_free(reflog);
- return error;
-}