diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-02-05 01:04:00 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-02-05 15:07:56 +0400 |
commit | 911236619b5d774e33dd9f3de92a7c86c2befb26 (patch) | |
tree | 528d64a959077a604232980cc092f92d04f0e13f /src/refdb.h | |
parent | d6236cf662ebd4ba8ef4902c81a19bbfd92847f9 (diff) |
refdb: add conditional symbolic updates
Add a parameter to the backend to allow checking for the old symbolic
target.
Diffstat (limited to 'src/refdb.h')
-rw-r--r-- | src/refdb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/refdb.h b/src/refdb.h index 86a1f8971..eabb5969b 100644 --- a/src/refdb.h +++ b/src/refdb.h @@ -42,7 +42,7 @@ int git_refdb_iterator_next(git_reference **out, git_reference_iterator *iter); int git_refdb_iterator_next_name(const char **out, git_reference_iterator *iter); void git_refdb_iterator_free(git_reference_iterator *iter); -int git_refdb_write(git_refdb *refdb, git_reference *ref, int force, const git_signature *who, const char *message, const git_oid *old); +int git_refdb_write(git_refdb *refdb, git_reference *ref, int force, const git_signature *who, const char *message, const git_oid *old_id, const char *old_target); int git_refdb_delete(git_refdb *refdb, const char *ref_name); int git_refdb_reflog_read(git_reflog **out, git_refdb *db, const char *name); |