From bd72425d16fce9771af7727029f7d8ea8c2e98d2 Mon Sep 17 00:00:00 2001 From: nulltoken Date: Wed, 18 Jul 2012 20:12:45 +0200 Subject: reflog: introduce git_reflog_write() --- include/git2/reflog.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/git2') diff --git a/include/git2/reflog.h b/include/git2/reflog.h index 1de870bb..9d04688e 100644 --- a/include/git2/reflog.h +++ b/include/git2/reflog.h @@ -32,6 +32,15 @@ GIT_BEGIN_DECL */ GIT_EXTERN(int) git_reflog_read(git_reflog **reflog, git_reference *ref); +/** + * Write an existing in-memory reflog object back to disk + * using an atomic file lock. + * + * @param reflog an existing reflog object + * @return 0 or an error code + */ +GIT_EXTERN(int) git_reflog_write(git_reflog *reflog); + /** * Add a new entry to the reflog for the given reference * -- cgit v1.2.1