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>
This commit is contained in:
Brandon Casey
2008-02-22 12:57:30 -06:00
committed by Junio C Hamano
parent 2b81fab288
commit 435fc8523f
2 changed files with 8 additions and 2 deletions

4
refs.c
View File

@ -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;