diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-12-18 19:58:16 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-02-05 12:07:56 +0100 |
commit | 9b148098e6802f9dd797471fc4f20cfc58a846b4 (patch) | |
tree | 2a31b9c1ab22c45a0f3c6f0783f28f7a24aa586a /include/git2/sys/refdb_backend.h | |
parent | 7369ea8075fa112bbd4c13f06eeedeb2a4e47153 (diff) | |
download | libgit2-9b148098e6802f9dd797471fc4f20cfc58a846b4.tar.gz |
refs: conditional ref updates
Allow updating references if the old value matches the given one.
Diffstat (limited to 'include/git2/sys/refdb_backend.h')
-rw-r--r-- | include/git2/sys/refdb_backend.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git2/sys/refdb_backend.h b/include/git2/sys/refdb_backend.h index 5bbd4ba4c..e43f9960b 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); int (*rename)( git_reference **out, git_refdb_backend *backend, |