summaryrefslogtreecommitdiff
path: root/src/stash.c
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 /src/stash.c
parent274c3fa62e1e78e0927e43e620546fd4d024a1d2 (diff)
downloadlibgit2-c327d5db8b62e42f62a0b9e54b61b5f857036ca5.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 'src/stash.c')
-rw-r--r--src/stash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stash.c b/src/stash.c
index ea4ba1af4..cad87d120 100644
--- a/src/stash.c
+++ b/src/stash.c
@@ -611,7 +611,7 @@ int git_stash_drop(
if ((error = git_transaction_new(&tx, repo)) < 0)
return error;
- if ((error = git_transaction_lock(tx, GIT_REFS_STASH_FILE)) < 0)
+ if ((error = git_transaction_lock_ref(tx, GIT_REFS_STASH_FILE)) < 0)
goto cleanup;
if ((error = git_reference_lookup(&stash, repo, GIT_REFS_STASH_FILE)) < 0)