aboutsummaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2008-02-22 12:57:30 -0600
committerJunio C Hamano <gitster@pobox.com>2008-02-22 22:57:38 -0800
commit435fc8523fd3a625acfeebffe433f1f7516ab9e2 (patch)
treeda4182d02b2a5c43b13bf9d82ae303c78ed35e99 /refs.c
parent2b81fab2885256501d0bba6e16e516addb667bf3 (diff)
downloadgit-435fc8523fd3a625acfeebffe433f1f7516ab9e2.tar.gz
git-435fc8523fd3a625acfeebffe433f1f7516ab9e2.tar.xz
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.c')
-rw-r--r--refs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/refs.c b/refs.c
index 67d2a502a..bc654299c 100644
--- a/refs.c
+++ b/refs.c
@@ -1018,7 +1018,7 @@ int rename_ref(const char *oldref, const char *newref, const char *logmsg)
return 1;
}
-static int close_ref(struct ref_lock *lock)
+int close_ref(struct ref_lock *lock)
{
if (close_lock_file(lock->lk))
return -1;
@@ -1026,7 +1026,7 @@ static int close_ref(struct ref_lock *lock)
return 0;
}
-static int commit_ref(struct ref_lock *lock)
+int commit_ref(struct ref_lock *lock)
{
if (commit_lock_file(lock->lk))
return -1;