summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2014-12-12 09:57:01 +0100
committerJunio C Hamano <gitster@pobox.com>2014-12-22 10:13:15 -0800
commit31e07f76a946831265e741333a3d9e0646c793ad (patch)
tree4e246320dc4ca7a2e3b0b1236ab6fbca75455d29 /refs.h
parent0b1e654801e52243b63b57e27b50acdfe7c8f853 (diff)
downloadgit-31e07f76a946831265e741333a3d9e0646c793ad.tar.gz
lock_any_ref_for_update(): inline function
Inline the function at its one remaining caller (which is within refs.c) and remove it. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/refs.h b/refs.h
index 4bb58b9686..28e7834da4 100644
--- a/refs.h
+++ b/refs.h
@@ -181,8 +181,7 @@ extern int is_branch(const char *refname);
extern int peel_ref(const char *refname, unsigned char *sha1);
/*
- * Flags controlling lock_any_ref_for_update(), ref_transaction_update(),
- * ref_transaction_create(), etc.
+ * Flags controlling ref_transaction_update(), ref_transaction_create(), etc.
* REF_NODEREF: act on the ref directly, instead of dereferencing
* symbolic references.
* REF_DELETING: tolerate broken refs
@@ -191,12 +190,6 @@ extern int peel_ref(const char *refname, unsigned char *sha1);
*/
#define REF_NODEREF 0x01
#define REF_DELETING 0x02
-/*
- * This function sets errno to something meaningful on failure.
- */
-extern struct ref_lock *lock_any_ref_for_update(const char *refname,
- const unsigned char *old_sha1,
- int flags, int *type_p);
/*
* Setup reflog before using. Set errno to something meaningful on failure.