summaryrefslogtreecommitdiff
path: root/include/git2/reflog.h
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-07-21 12:33:46 +0200
committernulltoken <emeric.fermas@gmail.com>2012-07-25 07:53:32 +0200
commit40c75652d075f87f20ddfbb715667f82644bc760 (patch)
tree401b2817b2267cb5b4c21aa990e4d256c4f33e9f /include/git2/reflog.h
parentae8331784eb968169e03099a5803a236a6a5aed4 (diff)
downloadlibgit2-40c75652d075f87f20ddfbb715667f82644bc760.tar.gz
reflog: prevent git_reflog_append() from persisting the reflog back to disk
Diffstat (limited to 'include/git2/reflog.h')
-rw-r--r--include/git2/reflog.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/git2/reflog.h b/include/git2/reflog.h
index ae8bb865..a314f94c 100644
--- a/include/git2/reflog.h
+++ b/include/git2/reflog.h
@@ -46,22 +46,17 @@ GIT_EXTERN(int) git_reflog_read(git_reflog **reflog, git_reference *ref);
GIT_EXTERN(int) git_reflog_write(git_reflog *reflog);
/**
- * Add a new entry to the reflog for the given reference
- *
- * If there is no reflog file for the given
- * reference yet, it will be created.
- *
- * `oid_old` may be NULL in case it's a new reference.
+ * Add a new entry to the reflog.
*
* `msg` is optional and can be NULL.
*
- * @param ref the changed reference
- * @param oid_old the OID the reference was pointing to
+ * @param reflog an existing reflog object
+ * @param new_oid 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(git_reference *ref, const git_oid *oid_old, const git_signature *committer, const char *msg);
+GIT_EXTERN(int) git_reflog_append(git_reflog *reflog, const git_oid *new_oid, const git_signature *committer, const char *msg);
/**
* Rename the reflog for the given reference