summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2008-02-22 18:57:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-23 06:57:38 (GMT)
commit435fc8523fd3a625acfeebffe433f1f7516ab9e2 (patch)
treeda4182d02b2a5c43b13bf9d82ae303c78ed35e99 /refs.h
parent2b81fab2885256501d0bba6e16e516addb667bf3 (diff)
downloadgit-435fc8523fd3a625acfeebffe433f1f7516ab9e2.zip
git-435fc8523fd3a625acfeebffe433f1f7516ab9e2.tar.gz
git-435fc8523fd3a625acfeebffe433f1f7516ab9e2.tar.bz2
refs.c: make close_ref() and commit_ref() non-static
This is in preparation to the reflog-expire changes which will allow updating the ref after expiring the reflog. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/refs.h b/refs.h
index 9cd16f8..06abee1 100644
--- a/refs.h
+++ b/refs.h
@@ -33,6 +33,12 @@ extern struct ref_lock *lock_ref_sha1(const char *ref, const unsigned char *old_
#define REF_NODEREF 0x01
extern struct ref_lock *lock_any_ref_for_update(const char *ref, const unsigned char *old_sha1, int flags);
+/** Close the file descriptor owned by a lock and return the status */
+extern int close_ref(struct ref_lock *lock);
+
+/** Close and commit the ref locked by the lock */
+extern int commit_ref(struct ref_lock *lock);
+
/** Release any lock taken but not written. **/
extern void unlock_ref(struct ref_lock *lock);