diff options
author | Russell Belfer <rb@github.com> | 2014-02-07 16:05:19 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-02-07 16:05:19 -0800 |
commit | 57c47af107b45b73a46a1d157f8f758edd536bc7 (patch) | |
tree | 2a5cf573ff12176fbe82462dbf2fc2a830c3a5ab /include/git2/sys | |
parent | 3158e2febe87787dc7804b5670f4dc53aeca87ed (diff) | |
parent | 5367ec4b84dc3b4ff3ff441347ce07d6065dd759 (diff) | |
download | libgit2-57c47af107b45b73a46a1d157f8f758edd536bc7.tar.gz |
Merge pull request #2042 from libgit2/cmn/conditional-ref
refs: conditional ref updates
Diffstat (limited to 'include/git2/sys')
-rw-r--r-- | include/git2/sys/refdb_backend.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/git2/sys/refdb_backend.h b/include/git2/sys/refdb_backend.h index 5bbd4ba4c..aa5ef9ecc 100644 --- a/include/git2/sys/refdb_backend.h +++ b/include/git2/sys/refdb_backend.h @@ -94,7 +94,8 @@ struct git_refdb_backend { */ int (*write)(git_refdb_backend *backend, const git_reference *ref, int force, - const git_signature *who, const char *message); + const git_signature *who, const char *message, + const git_oid *old, const char *old_target); int (*rename)( git_reference **out, git_refdb_backend *backend, @@ -105,7 +106,7 @@ struct git_refdb_backend { * Deletes the given reference from the refdb. A refdb implementation * must provide this function. */ - int (*del)(git_refdb_backend *backend, const char *ref_name); + int (*del)(git_refdb_backend *backend, const char *ref_name, const git_oid *old_id, const char *old_target); /** * Suggests that the given refdb compress or optimize its references. |