summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/git2/reflog.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/include/git2/reflog.h b/include/git2/reflog.h
index 2d1b6eeaa..df06e1b8e 100644
--- a/include/git2/reflog.h
+++ b/include/git2/reflog.h
@@ -47,7 +47,7 @@ GIT_EXTERN(int) git_reflog_read(git_reflog **out, git_repository *repo, const c
GIT_EXTERN(int) git_reflog_write(git_reflog *reflog);
/**
- * Add a new entry to the reflog.
+ * Add a new entry to the in-memory reflog.
*
* `msg` is optional and can be NULL.
*
@@ -60,23 +60,6 @@ GIT_EXTERN(int) git_reflog_write(git_reflog *reflog);
GIT_EXTERN(int) git_reflog_append(git_reflog *reflog, const git_oid *id, const git_signature *committer, const char *msg);
/**
- * Add a new entry to the named reflog.
- *
- * This utility function loads the named reflog, appends to it and
- * writes it back out to the backend.
- *
- * `msg` is optional and can be NULL.
- *
- * @param repo the repository to act on
- * @param name the reflog's name
- * @param id the OID the reference is now pointing to
- * @param committer the signature of the committer
- * @param msg the reflog message
- * @return 0 or an error code
- */
-GIT_EXTERN(int) git_reflog_append_to(git_repository *repo, const char *name, const git_oid *id, const git_signature *committer, const char *msg);
-
-/**
* Rename a reflog
*
* The reflog to be renamed is expected to already exist