summaryrefslogtreecommitdiff
path: root/include/git2/transaction.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-10-09 16:29:30 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-10-09 16:29:30 +0200
commitc327d5db8b62e42f62a0b9e54b61b5f857036ca5 (patch)
tree45678798f63121d1d2ccd73314517f8ade30a0b5 /include/git2/transaction.h
parent274c3fa62e1e78e0927e43e620546fd4d024a1d2 (diff)
downloadlibgit2-cmn/reference-transaction.tar.gz
transaction: rename lock() to lock_ref()cmn/reference-transaction
This leaves space for future expansion to locking other resources without having to change the API for references.
Diffstat (limited to 'include/git2/transaction.h')
-rw-r--r--include/git2/transaction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/transaction.h b/include/git2/transaction.h
index d5d7cb4cf..64abb0c69 100644
--- a/include/git2/transaction.h
+++ b/include/git2/transaction.h
@@ -32,7 +32,7 @@ GIT_EXTERN(int) git_transaction_new(git_transaction **out, git_repository *repo)
* @param refname the reference to lock
* @return 0 or an error message
*/
-GIT_EXTERN(int) git_transaction_lock(git_transaction *tx, const char *refname);
+GIT_EXTERN(int) git_transaction_lock_ref(git_transaction *tx, const char *refname);
/**
* Set the target of a reference