summaryrefslogtreecommitdiff
path: root/src/refs.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-06-28 06:39:38 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-09-30 15:44:32 +0200
commitab8d9242f54e2c570f86a45a509b9420911a4d44 (patch)
tree6070f721e7e93982a0fe37882e5700de5c1186a9 /src/refs.c
parentbdeb8772fe846eeeea92cb2d9adb85315f3b8417 (diff)
downloadlibgit2-ab8d9242f54e2c570f86a45a509b9420911a4d44.tar.gz
Introduce reference transactions
A transaction allows you to lock multiple references and set up changes for them before applying the changes all at once (or as close as the backend supports). This can be used for replication purposes, or for making sure some operations run when the reference is locked and thus cannot be changed.
Diffstat (limited to 'src/refs.c')
-rw-r--r--src/refs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/refs.c b/src/refs.c
index 1603876da..08e407e48 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -411,7 +411,7 @@ static int reference__create(
return 0;
}
-static int log_signature(git_signature **out, git_repository *repo)
+int git_reference__log_signature(git_signature **out, git_repository *repo)
{
int error;
git_signature *who;
@@ -441,7 +441,7 @@ int git_reference_create_matching(
assert(id);
if (!signature) {
- if ((error = log_signature(&who, repo)) < 0)
+ if ((error = git_reference__log_signature(&who, repo)) < 0)
return error;
else
signature = who;
@@ -482,7 +482,7 @@ int git_reference_symbolic_create_matching(
assert(target);
if (!signature) {
- if ((error = log_signature(&who, repo)) < 0)
+ if ((error = git_reference__log_signature(&who, repo)) < 0)
return error;
else
signature = who;