Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-02-05 01:04:00 +0400
committerCarlos Martín Nieto <cmn@dwim.me>2014-02-05 15:07:56 +0400
commit911236619b5d774e33dd9f3de92a7c86c2befb26 (patch)
tree528d64a959077a604232980cc092f92d04f0e13f /src/refdb.h
parentd6236cf662ebd4ba8ef4902c81a19bbfd92847f9 (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.h2
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);