diff options
Diffstat (limited to 'include/git2/reflog.h')
-rw-r--r-- | include/git2/reflog.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -33,6 +33,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 * * If there is no reflog file for the given |